mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 19:40:11 +00:00
Migrate integrations a-c to extend SensorEntity (#48210)
This commit is contained in:
@@ -17,6 +17,7 @@ from homeassistant.components.azure_devops.const import (
|
||||
DATA_PROJECT,
|
||||
DOMAIN,
|
||||
)
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
@@ -55,7 +56,7 @@ async def async_setup_entry(
|
||||
async_add_entities(sensors, True)
|
||||
|
||||
|
||||
class AzureDevOpsSensor(AzureDevOpsDeviceEntity):
|
||||
class AzureDevOpsSensor(SensorEntity, AzureDevOpsDeviceEntity):
|
||||
"""Defines a Azure DevOps sensor."""
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user