document Light State enum
This commit is contained in:
		| @@ -63,10 +63,15 @@ enum WaitType { | ||||
| } | ||||
|  | ||||
| #[derive(Serialize, Deserialize, Debug, PartialEq, Default)] | ||||
| /// Light State tracking data for mqtt | ||||
| struct LightState { | ||||
|     /// led is on | ||||
|     active: bool, | ||||
|     /// led should not be on at this time of day | ||||
|     out_of_work_hour: bool, | ||||
|     /// battery is low so do not use led | ||||
|     battery_low: bool, | ||||
|     /// the sun is up | ||||
|     is_day: bool, | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user