Migrate integrations a-c to extend SensorEntity (#48210)
This commit is contained in:
parent
1bb29bffbb
commit
e0cd7072d6
60 changed files with 139 additions and 139 deletions
|
@ -1,4 +1,5 @@
|
|||
"""Support for the Brother service."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.const import DEVICE_CLASS_TIMESTAMP
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
|
@ -56,7 +57,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
async_add_entities(sensors, False)
|
||||
|
||||
|
||||
class BrotherPrinterSensor(CoordinatorEntity):
|
||||
class BrotherPrinterSensor(SensorEntity, CoordinatorEntity):
|
||||
"""Define an Brother Printer sensor."""
|
||||
|
||||
def __init__(self, coordinator, kind, device_info):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue