Skip to content

Commit

Permalink
fix: light & state update
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims committed Oct 23, 2023
1 parent 3c63908 commit 0af28dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myFox2Mqtt/business/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,12 @@ def update_devices_status(
# Light
for light_device in light_devices:
if light_device.get("deviceId") == device.device_id:
keys_values["lastTemperature"] = light_device.get("light")
keys_values["light"] = int(light_device.get("light"))

# State
for state_device in state_devices:
if state_device.get("deviceId") == device.device_id:
keys_values["lastTemperature"] = state_device.get("stateLabel")
keys_values["stateLabel"] = state_device.get("stateLabel")

# Smoke
for other_device in other_devices:
Expand Down

0 comments on commit 0af28dc

Please sign in to comment.