1 """Support for EcoNet products."""
8 from .const
import DOMAIN, PUSH_UPDATE
12 """Define a base EcoNet entity."""
14 _attr_should_poll =
False
23 """Subscribe to device events."""
31 """Update was pushed from the ecoent API."""
36 """Return if the device is online or not."""
37 return self.
_econet_econet.connected
41 """Return device registry information for this entity."""
43 identifiers={(DOMAIN, self.
_econet_econet.device_id)},
45 name=self.
_econet_econet.device_name,
DeviceInfo device_info(self)
def async_added_to_hass(self)
def on_update_received(self)
def __init__(self, econet)
None async_write_ha_state(self)
None async_on_remove(self, CALLBACK_TYPE func)
Callable[[], None] async_dispatcher_connect(HomeAssistant hass, str signal, Callable[..., Any] target)