Migrate integrations t-v to extend SensorEntity (#48216)
This commit is contained in:
parent
c900e3030b
commit
783b453bbe
49 changed files with 112 additions and 120 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Support for Volvo On Call sensors."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
|
||||
from . import DATA_KEY, VolvoEntity
|
||||
|
||||
|
||||
|
@ -9,7 +11,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
async_add_entities([VolvoSensor(hass.data[DATA_KEY], *discovery_info)])
|
||||
|
||||
|
||||
class VolvoSensor(VolvoEntity):
|
||||
class VolvoSensor(VolvoEntity, SensorEntity):
|
||||
"""Representation of a Volvo sensor."""
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue