Skip to content

Commit

Permalink
0.1.7.b6
Browse files Browse the repository at this point in the history
  • Loading branch information
hakana committed Mar 26, 2020
1 parent 10fffa7 commit 7a06ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/shelly/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _updated(self, _block):
disabled = self.registry_entry and self.registry_entry.disabled_by
if self.entity_id is not None and not self._is_removed \
and not disabled:
self.schedule_update_ha_state()
self.schedule_update_ha_state(True)

@property
def device_state_attributes(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/shelly/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _updated(self, _block):
"""Receive events when the switch state changed (by mobile,
switch etc)"""
if self.entity_id is not None and not self._is_removed:
self.schedule_update_ha_state()
self.schedule_update_ha_state(True)

if self._dev.info_values is not None:
device_sensors = self.instance.device_sensors
Expand Down

0 comments on commit 7a06ce0

Please sign in to comment.