1 """Base entity class for the Ambient Weather Network integration."""
3 from __future__
import annotations
5 from abc
import abstractmethod
12 from .const
import DOMAIN
13 from .coordinator
import AmbientNetworkDataUpdateCoordinator
17 """Entity class for Ambient network devices."""
19 _attr_attribution =
"Data provided by ambientnetwork.net"
20 _attr_has_entity_name =
True
24 coordinator: AmbientNetworkDataUpdateCoordinator,
25 description: EntityDescription,
28 """Initialize the Ambient network entity."""
34 entry_type=DeviceEntryType.SERVICE,
35 name=coordinator.station_name,
36 identifiers={(DOMAIN, mac_address)},
37 manufacturer=
"Ambient Weather",
43 """Update state attributes."""
47 """Get the latest data and updates the state."""
None _handle_coordinator_update(self)
None __init__(self, AmbientNetworkDataUpdateCoordinator coordinator, EntityDescription description, str mac_address)