mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
fix track_time
This commit is contained in:
@@ -628,13 +628,13 @@ class HMHub(Entity):
|
|||||||
"""Return the icon to use in the frontend, if any."""
|
"""Return the icon to use in the frontend, if any."""
|
||||||
return "mdi:gradient"
|
return "mdi:gradient"
|
||||||
|
|
||||||
def _update_hub(self):
|
def _update_hub(self, now):
|
||||||
"""Retrieve latest state."""
|
"""Retrieve latest state."""
|
||||||
state = self._homematic.getServiceMessages(self._name)
|
state = self._homematic.getServiceMessages(self._name)
|
||||||
self._state = STATE_UNKNOWN if state is None else len(state)
|
self._state = STATE_UNKNOWN if state is None else len(state)
|
||||||
self.schedule_update_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def _update_variables(self):
|
def _update_variables(self, now):
|
||||||
"""Retrive all variable data and update hmvariable states."""
|
"""Retrive all variable data and update hmvariable states."""
|
||||||
variables = self._homematic.getAllSystemVariables(self._name)
|
variables = self._homematic.getAllSystemVariables(self._name)
|
||||||
if variables is None:
|
if variables is None:
|
||||||
|
Reference in New Issue
Block a user