Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions homeassistant/components/zha/core/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ async def wrapper(*args, **kwds):
"{}: {}".format("with args", args),
"{}: {}".format("with kwargs", kwds),
"{}: {}".format("and result", result))
if isinstance(result, bool):
return result
return result[1] is Status.SUCCESS
except DeliveryError:
_LOGGER.debug("%s: command failed: %s", listener.unique_id,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/zha/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def set_level(self, value):
"""Set the brightness of this light between 0..255."""
value = max(0, min(255, value))
self._brightness = value
self.async_set_state(value)
self.async_schedule_update_ha_state()

@property
def hs_color(self):
Expand Down