1 """The baf integration entities."""
3 from __future__
import annotations
5 from aiobafi6
import Device
14 """Base class for baf entities."""
16 _attr_should_poll =
False
17 _attr_has_entity_name =
True
20 """Initialize the entity."""
24 connections={(dr.CONNECTION_NETWORK_MAC, self.
_device_device.mac_address)},
26 manufacturer=
"Big Ass Fans",
27 model=self.
_device_device.model,
28 sw_version=self.
_device_device.firmware_version,
34 """Update attrs from device."""
39 """Process an update from the device."""
44 """Add data updated listener after this object has been initialized."""
48 """Remove data updated listener after this object has been initialized."""
53 """Base class for baf entities that use an entity description."""
55 def __init__(self, device: Device, description: EntityDescription) ->
None:
56 """Initialize the entity."""
None __init__(self, Device device, EntityDescription description)
None async_will_remove_from_hass(self)
None async_added_to_hass(self)
None _async_update_from_device(self, Device device)
None __init__(self, Device device)
None _async_update_attrs(self)
None async_write_ha_state(self)