Add missing enum item in SFR Box (#85746)

* Add missing enum item in SFR Box

* Adjust tests
This commit is contained in:
epenet 2023-01-12 17:15:09 +01:00 committed by GitHub
parent cc016c9bba
commit b5a9e682be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -30,7 +30,8 @@
"state": {
"adsl": "ADSL",
"ftth": "FTTH",
"gprs": "GPRS"
"gprs": "GPRS",
"unknown": "Unknown"
}
},
"training": {

View File

@ -31,7 +31,8 @@
"state": {
"adsl": "ADSL",
"ftth": "FTTH",
"gprs": "GPRS"
"gprs": "GPRS",
"unknown": "Unknown"
}
},
"training": {

View File

@ -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",
},