Migrate integrations w-z to extend SensorEntity (#48217)

This commit is contained in:
Erik Montnemery 2021-03-22 19:50:29 +01:00 committed by GitHub
parent 783b453bbe
commit 0c086b5067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 72 additions and 79 deletions

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from typing import Callable
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import Entity
@ -28,7 +28,7 @@ async def async_setup_entry(
async_add_entities(entities, True)
class WithingsHealthSensor(BaseWithingsSensor):
class WithingsHealthSensor(BaseWithingsSensor, SensorEntity):
"""Implementation of a Withings sensor."""
@property