Migrate integrations n-q to extend SensorEntity (#48214)
This commit is contained in:
parent
339a56e434
commit
c900e3030b
57 changed files with 129 additions and 136 deletions
|
@ -1,4 +1,5 @@
|
|||
"""Sensor platform for the PoolSense sensor."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.const import (
|
||||
ATTR_ATTRIBUTION,
|
||||
CONF_EMAIL,
|
||||
|
@ -8,7 +9,6 @@ from homeassistant.const import (
|
|||
PERCENTAGE,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from . import PoolSenseEntity
|
||||
from .const import ATTRIBUTION, DOMAIN
|
||||
|
@ -79,7 +79,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
async_add_entities(sensors_list, False)
|
||||
|
||||
|
||||
class PoolSenseSensor(PoolSenseEntity, Entity):
|
||||
class PoolSenseSensor(PoolSenseEntity, SensorEntity):
|
||||
"""Sensor representing poolsense data."""
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue