Updated apps

This commit is contained in:
2026-07-20 22:52:35 -04:00
parent 28a8cb98f6
commit a0c3271743
1164 changed files with 94781 additions and 6892 deletions
+35
View File
@@ -0,0 +1,35 @@
"""Represents Watchman service in the device registry of Home Assistant."""
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.update_coordinator import (
CoordinatorEntity,
DataUpdateCoordinator,
)
from .const import DOMAIN
class WatchmanEntity(CoordinatorEntity):
"""Representation of a Watchman entity."""
def __init__(
self,
coordinator: DataUpdateCoordinator,
entity_description: EntityDescription,
) -> None:
"""Initialize Watchman entity."""
super().__init__(coordinator)
self.entity_description = entity_description
# per sensor unique_id
self._attr_unique_id = f"{DOMAIN}_{entity_description.key}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, "watchman_unique_id")},
manufacturer="dummylabs",
model="Watchman",
name="Watchman",
sw_version=coordinator.version,
entry_type=DeviceEntryType.SERVICE,
configuration_url="https://github.com/dummylabs/thewatchman",
)
self._attr_extra_state_attributes = {}