mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add icon translations to Hive (#111717)
This commit is contained in:
parent
afe3d7fb4f
commit
818022073d
@ -20,7 +20,6 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||||||
from . import HiveEntity
|
from . import HiveEntity
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
ICON = "mdi:security"
|
|
||||||
PARALLEL_UPDATES = 0
|
PARALLEL_UPDATES = 0
|
||||||
SCAN_INTERVAL = timedelta(seconds=15)
|
SCAN_INTERVAL = timedelta(seconds=15)
|
||||||
HIVETOHA = {
|
HIVETOHA = {
|
||||||
@ -46,7 +45,6 @@ async def async_setup_entry(
|
|||||||
class HiveAlarmControlPanelEntity(HiveEntity, AlarmControlPanelEntity):
|
class HiveAlarmControlPanelEntity(HiveEntity, AlarmControlPanelEntity):
|
||||||
"""Representation of a Hive alarm."""
|
"""Representation of a Hive alarm."""
|
||||||
|
|
||||||
_attr_icon = ICON
|
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
AlarmControlPanelEntityFeature.ARM_NIGHT
|
AlarmControlPanelEntityFeature.ARM_NIGHT
|
||||||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||||
|
7
homeassistant/components/hive/icons.json
Normal file
7
homeassistant/components/hive/icons.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"services": {
|
||||||
|
"boost_heating_on": "mdi:radiator",
|
||||||
|
"boost_heating_off": "mdi:radiator-off",
|
||||||
|
"boost_hot_water": "mdi:water-boiler"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user