Migrate integrations f-h to extend SensorEntity (#48212)
This commit is contained in:
parent
a49989241a
commit
339a56e434
61 changed files with 154 additions and 167 deletions
|
@ -1,8 +1,8 @@
|
|||
"""Support gathering system information of hosts which are running glances."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.const import CONF_NAME, STATE_UNAVAILABLE
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from .const import DATA_UPDATED, DOMAIN, SENSOR_TYPES
|
||||
|
||||
|
@ -60,7 +60,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
async_add_entities(dev, True)
|
||||
|
||||
|
||||
class GlancesSensor(Entity):
|
||||
class GlancesSensor(SensorEntity):
|
||||
"""Implementation of a Glances sensor."""
|
||||
|
||||
def __init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue