3 from __future__
import annotations
5 from pybalboa
import EVENT_UPDATE, SpaClient
10 from .const
import DOMAIN
14 """Balboa base entity."""
16 _attr_should_poll =
False
17 _attr_has_entity_name =
True
19 def __init__(self, client: SpaClient, key: str) ->
None:
20 """Initialize the control."""
21 mac = client.mac_address
25 identifiers={(DOMAIN, mac)},
27 manufacturer=
"Balboa Water Group",
29 sw_version=client.software_version,
30 connections={(CONNECTION_NETWORK_MAC, mac)},
36 """Return whether the state is based on actual reading from device."""
37 return not self.
_client_client.available
40 """Run when entity about to be added to hass."""
None async_added_to_hass(self)
None __init__(self, SpaClient client, str key)
None async_write_ha_state(self)
None async_on_remove(self, CALLBACK_TYPE func)