forked from home-assistant/core
Add entity category to gogogate2 (#58366)
This commit is contained in:
@@ -10,6 +10,7 @@ from homeassistant.config_entries import ConfigEntry
|
|||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
DEVICE_CLASS_BATTERY,
|
DEVICE_CLASS_BATTERY,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
|
ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@@ -51,6 +52,8 @@ async def async_setup_entry(
|
|||||||
class DoorSensorBattery(GoGoGate2Entity, SensorEntity):
|
class DoorSensorBattery(GoGoGate2Entity, SensorEntity):
|
||||||
"""Battery sensor entity for gogogate2 door sensor."""
|
"""Battery sensor entity for gogogate2 door sensor."""
|
||||||
|
|
||||||
|
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
config_entry: ConfigEntry,
|
config_entry: ConfigEntry,
|
||||||
|
Reference in New Issue
Block a user