1 """Entity object for shared properties of Gree entities."""
6 from .const
import DOMAIN
7 from .coordinator
import DeviceDataUpdateCoordinator
11 """Generic Gree entity (base class)."""
13 _attr_has_entity_name =
True
16 self, coordinator: DeviceDataUpdateCoordinator, desc: str |
None =
None
18 """Initialize the entity."""
20 name = coordinator.device.device_info.name
21 mac = coordinator.device.device_info.mac
24 connections={(CONNECTION_NETWORK_MAC, mac)},
25 identifiers={(DOMAIN, mac)},
None __init__(self, DeviceDataUpdateCoordinator coordinator, str|None desc=None)