mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +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(
|
||||
key="sms",
|
||||
translation_key="sms",
|
||||
icon="mdi:message-processing",
|
||||
native_unit_of_measurement="unread",
|
||||
value_fn=lambda modem_data: sum(1 for x in modem_data.data.sms if x.unread),
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="sms_total",
|
||||
translation_key="sms_total",
|
||||
icon="mdi:message-processing",
|
||||
native_unit_of_measurement="messages",
|
||||
value_fn=lambda modem_data: len(modem_data.data.sms),
|
||||
),
|
||||
@ -84,49 +82,42 @@ SENSORS: tuple[NetgearLTESensorEntityDescription, ...] = (
|
||||
key="upstream",
|
||||
translation_key="upstream",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:ip-network",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="connection_text",
|
||||
translation_key="connection_text",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:radio-tower",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="connection_type",
|
||||
translation_key="connection_type",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:ip",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="current_ps_service_type",
|
||||
translation_key="service_type",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:radio-tower",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="register_network_display",
|
||||
translation_key="register_network_display",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:web",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="current_band",
|
||||
translation_key="band",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:radio-tower",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
NetgearLTESensorEntityDescription(
|
||||
key="cell_id",
|
||||
translation_key="cell_id",
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:radio-tower",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
)
|
||||
|
@ -3,7 +3,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Cell ID',
|
||||
'icon': 'mdi:radio-tower',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_cell_id',
|
||||
@ -16,7 +15,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Connection text',
|
||||
'icon': 'mdi:radio-tower',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_connection_text',
|
||||
@ -29,7 +27,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Connection type',
|
||||
'icon': 'mdi:ip',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_connection_type',
|
||||
@ -42,7 +39,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Current band',
|
||||
'icon': 'mdi:radio-tower',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_current_band',
|
||||
@ -68,7 +64,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Register network display',
|
||||
'icon': 'mdi:web',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_register_network_display',
|
||||
@ -95,7 +90,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Service type',
|
||||
'icon': 'mdi:radio-tower',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_service_type',
|
||||
@ -108,7 +102,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 SMS',
|
||||
'icon': 'mdi:message-processing',
|
||||
'unit_of_measurement': 'unread',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@ -122,7 +115,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 SMS total',
|
||||
'icon': 'mdi:message-processing',
|
||||
'unit_of_measurement': 'messages',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@ -150,7 +142,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Netgear LM1200 Upstream',
|
||||
'icon': 'mdi:ip-network',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.netgear_lm1200_upstream',
|
||||
|
Loading…
x
Reference in New Issue
Block a user