mirror of
https://github.com/home-assistant/core.git
synced 2026-09-08 14:41:38 +01:00
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: piitaya <5878303+piitaya@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
25 lines
780 B
Python
25 lines
780 B
Python
"""Common entity for Honeywell String Lights integration."""
|
|
|
|
from homeassistant.components.radio_frequency import (
|
|
RadioFrequencyTransmitterConsumerEntity,
|
|
)
|
|
from homeassistant.config_entries import ConfigEntry
|
|
from homeassistant.helpers.device_registry import DeviceInfo
|
|
|
|
from .const import DOMAIN
|
|
|
|
|
|
class HoneywellStringLightsEntity(RadioFrequencyTransmitterConsumerEntity):
|
|
"""Honeywell String Lights base entity."""
|
|
|
|
_attr_has_entity_name = True
|
|
|
|
def __init__(self, entry: ConfigEntry) -> None:
|
|
"""Initialize the entity."""
|
|
self._attr_unique_id = entry.entry_id
|
|
self._attr_device_info = DeviceInfo(
|
|
identifiers={(DOMAIN, entry.entry_id)},
|
|
manufacturer="Honeywell",
|
|
model="String Lights",
|
|
)
|