Skip to content

Commit

Permalink
Add manual entity update function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 19, 2024
1 parent 6c5b7da commit b932ed9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/yandex_station/core/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def internal_update(self, capabilities: dict, properties: dict):
"""
pass

async def async_update(self):
device_id = self.device["id"]
device = await self.quasar.get_device(device_id)
self.quasar.dispatch_update(device_id, device)


class YandexCustomEntity(YandexEntity):
def __init__(self, quasar: YandexQuasar, device: dict, config: dict):
Expand Down

0 comments on commit b932ed9

Please sign in to comment.