Skip to content

Commit

Permalink
Controller battery category changed to diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
c503ghosh committed May 25, 2024
1 parent 43219ee commit 0e912da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/dirigera_platform/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from homeassistant.components.sensor import SensorDeviceClass, SensorEntity
from homeassistant.const import CONF_IP_ADDRESS, CONF_TOKEN
from homeassistant.core import HomeAssistantError
from homeassistant.helpers.entity import EntityCategory

from .const import DOMAIN
from .base_classes import ikea_base_device, ikea_base_device_sensor
Expand Down Expand Up @@ -204,6 +205,10 @@ def __init__(self,hass:core.HomeAssistant, hub:Hub, json_data:Controller):
logger.debug("ikea_controller ctor...")
super().__init__(hass , hub, json_data, hub.get_controller_by_id)

@property
def entity_category(self):
return EntityCategory.DIAGNOSTIC

@property
def icon(self):
return "mdi:battery"
Expand Down

0 comments on commit 0e912da

Please sign in to comment.