mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add icon translations to Blink (#111346)
This commit is contained in:
parent
3e67b9828b
commit
76784cbc95
@ -26,8 +26,6 @@ from .coordinator import BlinkUpdateCoordinator
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
ICON = "mdi:security"
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant, config: ConfigEntry, async_add_entities: AddEntitiesCallback
|
hass: HomeAssistant, config: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||||
@ -46,7 +44,6 @@ class BlinkSyncModuleHA(
|
|||||||
):
|
):
|
||||||
"""Representation of a Blink Alarm Control Panel."""
|
"""Representation of a Blink Alarm Control Panel."""
|
||||||
|
|
||||||
_attr_icon = ICON
|
|
||||||
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
|
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
21
homeassistant/components/blink/icons.json
Normal file
21
homeassistant/components/blink/icons.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"wifi_strength": {
|
||||||
|
"default": "mdi:wifi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"switch": {
|
||||||
|
"camera_motion": {
|
||||||
|
"default": "mdi:motion-sensor"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"blink_update": "mdi:update",
|
||||||
|
"trigger_camera": "mdi:image-refresh",
|
||||||
|
"save_video": "mdi:file-video",
|
||||||
|
"save_recent_clips": "mdi:file-video",
|
||||||
|
"send_pin": "mdi:two-factor-authentication"
|
||||||
|
}
|
||||||
|
}
|
@ -32,7 +32,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_WIFI_STRENGTH,
|
key=TYPE_WIFI_STRENGTH,
|
||||||
translation_key="wifi_strength",
|
translation_key="wifi_strength",
|
||||||
icon="mdi:wifi",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
@ -21,7 +21,6 @@ from .coordinator import BlinkUpdateCoordinator
|
|||||||
SWITCH_TYPES: tuple[SwitchEntityDescription, ...] = (
|
SWITCH_TYPES: tuple[SwitchEntityDescription, ...] = (
|
||||||
SwitchEntityDescription(
|
SwitchEntityDescription(
|
||||||
key=TYPE_CAMERA_ARMED,
|
key=TYPE_CAMERA_ARMED,
|
||||||
icon="mdi:motion-sensor",
|
|
||||||
translation_key="camera_motion",
|
translation_key="camera_motion",
|
||||||
device_class=SwitchDeviceClass.SWITCH,
|
device_class=SwitchDeviceClass.SWITCH,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user