Add icon translations to Blink (#111346)

This commit is contained in:
Joost Lekkerkerker 2024-02-25 10:44:49 +01:00 committed by GitHub
parent 3e67b9828b
commit 76784cbc95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 5 deletions

View File

@ -26,8 +26,6 @@ from .coordinator import BlinkUpdateCoordinator
_LOGGER = logging.getLogger(__name__)
ICON = "mdi:security"
async def async_setup_entry(
hass: HomeAssistant, config: ConfigEntry, async_add_entities: AddEntitiesCallback
@ -46,7 +44,6 @@ class BlinkSyncModuleHA(
):
"""Representation of a Blink Alarm Control Panel."""
_attr_icon = ICON
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
_attr_has_entity_name = True
_attr_name = None

View 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"
}
}

View File

@ -32,7 +32,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription(
key=TYPE_WIFI_STRENGTH,
translation_key="wifi_strength",
icon="mdi:wifi",
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),

View File

@ -21,7 +21,6 @@ from .coordinator import BlinkUpdateCoordinator
SWITCH_TYPES: tuple[SwitchEntityDescription, ...] = (
SwitchEntityDescription(
key=TYPE_CAMERA_ARMED,
icon="mdi:motion-sensor",
translation_key="camera_motion",
device_class=SwitchDeviceClass.SWITCH,
),