mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
22 lines
519 B
Python
22 lines
519 B
Python
"""Support for Envisalink devices."""
|
|
|
|
from typing import Any
|
|
|
|
from pyenvisalink import EnvisalinkAlarmPanel
|
|
|
|
from homeassistant.helpers.entity import Entity
|
|
|
|
|
|
class EnvisalinkEntity(Entity):
|
|
"""Representation of an Envisalink device."""
|
|
|
|
_attr_should_poll = False
|
|
|
|
def __init__(
|
|
self, name: str, info: dict[str, Any], controller: EnvisalinkAlarmPanel
|
|
) -> None:
|
|
"""Initialize the device."""
|
|
self._controller = controller
|
|
self._info = info
|
|
self._attr_name = name
|