1 """StarLine base entity."""
3 from __future__
import annotations
5 from collections.abc
import Callable
9 from .account
import StarlineAccount, StarlineDevice
13 """StarLine base entity class."""
15 _attr_should_poll =
False
16 _attr_has_entity_name =
True
19 self, account: StarlineAccount, device: StarlineDevice, key: str
21 """Initialize StarLine entity."""
31 """Return True if entity is available."""
32 return self.
_account_account.api.available
35 """Read new state data."""
39 """Call when entity about to be added to Home Assistant."""
44 """Call when entity is being removed from Home Assistant."""
def async_added_to_hass(self)
None __init__(self, StarlineAccount account, StarlineDevice device, str key)
def async_will_remove_from_hass(self)
None schedule_update_ha_state(self, bool force_refresh=False)