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

@ -4,7 +4,7 @@ from __future__ import annotations
from pyplaato.models.device import PlaatoDevice
from pyplaato.plaato import PlaatoKeg
from homeassistant.components.sensor import DEVICE_CLASS_TEMPERATURE
from homeassistant.components.sensor import DEVICE_CLASS_TEMPERATURE, SensorEntity
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
@ -59,7 +59,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
)
class PlaatoSensor(PlaatoEntity):
class PlaatoSensor(PlaatoEntity, SensorEntity):
"""Representation of a Plaato Sensor."""
@property