Migrate integrations n-q to extend SensorEntity (#48214)

This commit is contained in:
Erik Montnemery 2021-03-22 19:46:46 +01:00 committed by GitHub
parent 339a56e434
commit c900e3030b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 129 additions and 136 deletions

View file

@ -1,5 +1,5 @@
"""Summary data from Nextcoud."""
from homeassistant.helpers.entity import Entity
from homeassistant.components.sensor import SensorEntity
from . import DOMAIN, SENSORS
@ -15,7 +15,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
add_entities(sensors, True)
class NextcloudSensor(Entity):
class NextcloudSensor(SensorEntity):
"""Represents a Nextcloud sensor."""
def __init__(self, item):