Skip to content

Commit

Permalink
workaround for some entities not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbadblunt committed Apr 23, 2022
1 parent 692603a commit 499fb1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/lightwave2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ async def handle_webhook(hass, webhook_id, request):
for ent in hass.data[DOMAIN][entry_id][LIGHTWAVE_ENTITIES]:
_LOGGER.debug("Webhook debug: ent: {}".format(ent))
_LOGGER.debug("Webhook debug: ent.hass: {}".format(ent.hass))
ent.async_schedule_update_ha_state(True)
if ent.hass is not None:
ent.async_schedule_update_ha_state(True)

async def async_setup_entry(hass, config_entry):
from lightwave2 import lightwave2
Expand Down

0 comments on commit 499fb1f

Please sign in to comment.