mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix callback
This commit is contained in:
@@ -59,11 +59,11 @@ class UpdaterBinary(BinarySensorDevice):
|
|||||||
data[ATTR_NEWEST_VERSION] = self._newest_version
|
data[ATTR_NEWEST_VERSION] = self._newest_version
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@callback
|
async def async_added_to_hass(self):
|
||||||
def async_added_to_hass(self):
|
|
||||||
"""Register update dispatcher."""
|
"""Register update dispatcher."""
|
||||||
|
|
||||||
async def async_state_update(updater: Updater):
|
@callback
|
||||||
|
def async_state_update(updater: Updater):
|
||||||
"""Update callback."""
|
"""Update callback."""
|
||||||
self._newest_version = updater.newest_version
|
self._newest_version = updater.newest_version
|
||||||
self._release_notes = updater.release_notes
|
self._release_notes = updater.release_notes
|
||||||
|
Reference in New Issue
Block a user