mirror of
https://github.com/home-assistant/core.git
synced 2025-05-02 21:19:16 +00:00
Add icon translations to Netgear LTE (#111974)
* Add icon translations to Netgear LTE * Add icon translations to Netgear LTE * Update homeassistant/components/netgear_lte/icons.json
This commit is contained in:
parent
a78382a3f7
commit
2e12e5cda1
39
homeassistant/components/netgear_lte/icons.json
Normal file
39
homeassistant/components/netgear_lte/icons.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"sms": {
|
||||||
|
"default": "mdi:message-processing"
|
||||||
|
},
|
||||||
|
"sms_total": {
|
||||||
|
"default": "mdi:message-processing"
|
||||||
|
},
|
||||||
|
"upstream": {
|
||||||
|
"default": "mdi:ip-network"
|
||||||
|
},
|
||||||
|
"connection_text": {
|
||||||
|
"default": "mdi:radio-tower"
|
||||||
|
},
|
||||||
|
"connection_type": {
|
||||||
|
"default": "mdi:ip"
|
||||||
|
},
|
||||||
|
"service_type": {
|
||||||
|
"default": "mdi:radio-tower"
|
||||||
|
},
|
||||||
|
"register_network_display": {
|
||||||
|
"default": "mdi:web"
|
||||||
|
},
|
||||||
|
"band": {
|
||||||
|
"default": "mdi:radio-tower"
|
||||||
|
},
|
||||||
|
"cell_id": {
|
||||||
|
"default": "mdi:radio-tower"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"delete_sms": "mdi:delete",
|
||||||
|
"set_option": "mdi:cog",
|
||||||
|
"connect_lte": "mdi:wifi",
|
||||||
|
"disconnect_lte": "mdi:wifi-off"
|
||||||
|
}
|
||||||
|
}
|
@ -36,14 +36,12 @@ SENSORS: tuple[NetgearLTESensorEntityDescription, ...] = (
|
|||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="sms",
|
key="sms",
|
||||||
translation_key="sms",
|
translation_key="sms",
|
||||||
icon="mdi:message-processing",
|
|
||||||
native_unit_of_measurement="unread",
|
native_unit_of_measurement="unread",
|
||||||
value_fn=lambda modem_data: sum(1 for x in modem_data.data.sms if x.unread),
|
value_fn=lambda modem_data: sum(1 for x in modem_data.data.sms if x.unread),
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="sms_total",
|
key="sms_total",
|
||||||
translation_key="sms_total",
|
translation_key="sms_total",
|
||||||
icon="mdi:message-processing",
|
|
||||||
native_unit_of_measurement="messages",
|
native_unit_of_measurement="messages",
|
||||||
value_fn=lambda modem_data: len(modem_data.data.sms),
|
value_fn=lambda modem_data: len(modem_data.data.sms),
|
||||||
),
|
),
|
||||||
@ -84,49 +82,42 @@ SENSORS: tuple[NetgearLTESensorEntityDescription, ...] = (
|
|||||||
key="upstream",
|
key="upstream",
|
||||||
translation_key="upstream",
|
translation_key="upstream",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:ip-network",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="connection_text",
|
key="connection_text",
|
||||||
translation_key="connection_text",
|
translation_key="connection_text",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:radio-tower",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="connection_type",
|
key="connection_type",
|
||||||
translation_key="connection_type",
|
translation_key="connection_type",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:ip",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="current_ps_service_type",
|
key="current_ps_service_type",
|
||||||
translation_key="service_type",
|
translation_key="service_type",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:radio-tower",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="register_network_display",
|
key="register_network_display",
|
||||||
translation_key="register_network_display",
|
translation_key="register_network_display",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:web",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="current_band",
|
key="current_band",
|
||||||
translation_key="band",
|
translation_key="band",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:radio-tower",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
NetgearLTESensorEntityDescription(
|
NetgearLTESensorEntityDescription(
|
||||||
key="cell_id",
|
key="cell_id",
|
||||||
translation_key="cell_id",
|
translation_key="cell_id",
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
icon="mdi:radio-tower",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Cell ID',
|
'friendly_name': 'Netgear LM1200 Cell ID',
|
||||||
'icon': 'mdi:radio-tower',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_cell_id',
|
'entity_id': 'sensor.netgear_lm1200_cell_id',
|
||||||
@ -16,7 +15,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Connection text',
|
'friendly_name': 'Netgear LM1200 Connection text',
|
||||||
'icon': 'mdi:radio-tower',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_connection_text',
|
'entity_id': 'sensor.netgear_lm1200_connection_text',
|
||||||
@ -29,7 +27,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Connection type',
|
'friendly_name': 'Netgear LM1200 Connection type',
|
||||||
'icon': 'mdi:ip',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_connection_type',
|
'entity_id': 'sensor.netgear_lm1200_connection_type',
|
||||||
@ -42,7 +39,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Current band',
|
'friendly_name': 'Netgear LM1200 Current band',
|
||||||
'icon': 'mdi:radio-tower',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_current_band',
|
'entity_id': 'sensor.netgear_lm1200_current_band',
|
||||||
@ -68,7 +64,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Register network display',
|
'friendly_name': 'Netgear LM1200 Register network display',
|
||||||
'icon': 'mdi:web',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_register_network_display',
|
'entity_id': 'sensor.netgear_lm1200_register_network_display',
|
||||||
@ -95,7 +90,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Service type',
|
'friendly_name': 'Netgear LM1200 Service type',
|
||||||
'icon': 'mdi:radio-tower',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_service_type',
|
'entity_id': 'sensor.netgear_lm1200_service_type',
|
||||||
@ -108,7 +102,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 SMS',
|
'friendly_name': 'Netgear LM1200 SMS',
|
||||||
'icon': 'mdi:message-processing',
|
|
||||||
'unit_of_measurement': 'unread',
|
'unit_of_measurement': 'unread',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
@ -122,7 +115,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 SMS total',
|
'friendly_name': 'Netgear LM1200 SMS total',
|
||||||
'icon': 'mdi:message-processing',
|
|
||||||
'unit_of_measurement': 'messages',
|
'unit_of_measurement': 'messages',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
@ -150,7 +142,6 @@
|
|||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Netgear LM1200 Upstream',
|
'friendly_name': 'Netgear LM1200 Upstream',
|
||||||
'icon': 'mdi:ip-network',
|
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.netgear_lm1200_upstream',
|
'entity_id': 'sensor.netgear_lm1200_upstream',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user