1 """Smarty Coordinator."""
3 from datetime
import timedelta
6 from pysmarty2
import Smarty
13 _LOGGER = logging.getLogger(__name__)
15 type SmartyConfigEntry = ConfigEntry[SmartyCoordinator]
19 """Smarty Coordinator."""
21 config_entry: SmartyConfigEntry
23 configuration_version: str
25 def __init__(self, hass: HomeAssistant) ->
None:
36 if not await self.
hasshass.async_add_executor_job(self.
clientclient.update):
42 """Fetch data from Smarty."""
43 if not await self.
hasshass.async_add_executor_job(self.
clientclient.update):
None __init__(self, HomeAssistant hass)
None _async_update_data(self)