Migrate integrations f-h to extend SensorEntity (#48212)

This commit is contained in:
Erik Montnemery 2021-03-22 19:45:17 +01:00 committed by GitHub
parent a49989241a
commit 339a56e434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 154 additions and 167 deletions

View file

@ -1,8 +1,8 @@
"""Support for AVM Fritz!Box smarthome temperature sensor only devices."""
import requests
from homeassistant.components.sensor import SensorEntity
from homeassistant.const import CONF_DEVICES, TEMP_CELSIUS
from homeassistant.helpers.entity import Entity
from .const import (
ATTR_STATE_DEVICE_LOCKED,
@ -32,7 +32,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
async_add_entities(entities)
class FritzBoxTempSensor(Entity):
class FritzBoxTempSensor(SensorEntity):
"""The entity class for Fritzbox temperature sensors."""
def __init__(self, device, fritz):