Migrate integrations a-c to extend SensorEntity (#48210)

This commit is contained in:
Erik Montnemery 2021-03-22 12:37:16 +01:00 committed by GitHub
parent 1bb29bffbb
commit e0cd7072d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 139 additions and 139 deletions

View file

@ -4,6 +4,7 @@ from __future__ import annotations
import logging
from numbers import Number
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import DATA_GIGABYTES, DATA_RATE_MEGABITS_PER_SECOND
from homeassistant.helpers.typing import HomeAssistantType
@ -97,7 +98,7 @@ async def async_setup_entry(
async_add_entities(entities, True)
class AsusWrtSensor(CoordinatorEntity):
class AsusWrtSensor(SensorEntity, CoordinatorEntity):
"""Representation of a AsusWrt sensor."""
def __init__(