Improve Vodafone Station empty/unavailable phone number detection (#115696)
Vodafone Sercomm H300S model incorrectly reports phone_unavailable1/phone_unavailable2 flags.
This commit is contained in:
parent
8f56d170b9
commit
3d59303433
1 changed files with 2 additions and 2 deletions
|
@ -107,12 +107,12 @@ SENSOR_TYPES: Final = (
|
||||||
VodafoneStationEntityDescription(
|
VodafoneStationEntityDescription(
|
||||||
key="phone_num1",
|
key="phone_num1",
|
||||||
translation_key="phone_num1",
|
translation_key="phone_num1",
|
||||||
is_suitable=lambda info: info["phone_unavailable1"] == "0",
|
is_suitable=lambda info: info["phone_num1"] != "",
|
||||||
),
|
),
|
||||||
VodafoneStationEntityDescription(
|
VodafoneStationEntityDescription(
|
||||||
key="phone_num2",
|
key="phone_num2",
|
||||||
translation_key="phone_num2",
|
translation_key="phone_num2",
|
||||||
is_suitable=lambda info: info["phone_unavailable2"] == "0",
|
is_suitable=lambda info: info["phone_num2"] != "",
|
||||||
),
|
),
|
||||||
VodafoneStationEntityDescription(
|
VodafoneStationEntityDescription(
|
||||||
key="sys_uptime",
|
key="sys_uptime",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue