mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add missing enum item in SFR Box (#85746)
* Add missing enum item in SFR Box * Adjust tests
This commit is contained in:
parent
cc016c9bba
commit
b5a9e682be
@ -172,6 +172,7 @@ SYSTEM_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[SystemInfo], ...] = (
|
||||
"adsl",
|
||||
"ftth",
|
||||
"gprs",
|
||||
"unknown",
|
||||
],
|
||||
translation_key="net_infra",
|
||||
value_fn=lambda x: x.net_infra,
|
||||
|
@ -30,7 +30,8 @@
|
||||
"state": {
|
||||
"adsl": "ADSL",
|
||||
"ftth": "FTTH",
|
||||
"gprs": "GPRS"
|
||||
"gprs": "GPRS",
|
||||
"unknown": "Unknown"
|
||||
}
|
||||
},
|
||||
"training": {
|
||||
|
@ -31,7 +31,8 @@
|
||||
"state": {
|
||||
"adsl": "ADSL",
|
||||
"ftth": "FTTH",
|
||||
"gprs": "GPRS"
|
||||
"gprs": "GPRS",
|
||||
"unknown": "Unknown"
|
||||
}
|
||||
},
|
||||
"training": {
|
||||
|
@ -53,7 +53,7 @@ EXPECTED_ENTITIES = {
|
||||
ATTR_DEFAULT_DISABLED: True,
|
||||
ATTR_DEVICE_CLASS: SensorDeviceClass.ENUM,
|
||||
ATTR_ENTITY_ID: "sensor.sfr_box_network_infrastructure",
|
||||
ATTR_OPTIONS: ["adsl", "ftth", "gprs"],
|
||||
ATTR_OPTIONS: ["adsl", "ftth", "gprs", "unknown"],
|
||||
ATTR_STATE: "adsl",
|
||||
ATTR_UNIQUE_ID: "e4:5d:51:00:11:22_system_net_infra",
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user