Migrate integrations a-c to extend SensorEntity (#48210)

This commit is contained in:
Erik Montnemery
2021-03-22 12:37:16 +01:00
committed by GitHub
parent 1bb29bffbb
commit e0cd7072d6
60 changed files with 139 additions and 139 deletions

View File

@@ -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):