1 """Entity representing a Skybell HD Doorbell."""
3 from __future__
import annotations
5 from aioskybell
import SkybellDevice
13 from .const
import DEFAULT_NAME, DOMAIN
14 from .coordinator
import SkybellDataUpdateCoordinator
18 """An HA implementation for Skybell entity."""
20 _attr_attribution =
"Data provided by Skybell.com"
21 _attr_has_entity_name =
True
24 self, coordinator: SkybellDataUpdateCoordinator, description: EntityDescription
26 """Initialize a SkyBell entity."""
29 self.
_attr_unique_id_attr_unique_id = f
"{self._device.device_id}_{description.key}"
31 identifiers={(DOMAIN, self.
_device_device.device_id)},
32 manufacturer=DEFAULT_NAME,
34 name=self.
_device_device.name.capitalize(),
35 sw_version=self.
_device_device.firmware_ver,
39 (dr.CONNECTION_NETWORK_MAC, self.
_device_device.mac)
44 """Return the device."""
45 return self.coordinator.device
48 """When entity is added to hass."""
50 self._handle_coordinator_update()
None async_added_to_hass(self)
SkybellDevice _device(self)
None __init__(self, SkybellDataUpdateCoordinator coordinator, EntityDescription description)