mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Migrate integrations a-c to extend SensorEntity (#48210)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Support for AlarmDecoder sensors (Shows Panel Display)."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from .const import SIGNAL_PANEL_MESSAGE
|
||||
@@ -16,7 +16,7 @@ async def async_setup_entry(
|
||||
return True
|
||||
|
||||
|
||||
class AlarmDecoderSensor(Entity):
|
||||
class AlarmDecoderSensor(SensorEntity):
|
||||
"""Representation of an AlarmDecoder keypad."""
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user