mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
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
@ -107,12 +107,12 @@ SENSOR_TYPES: Final = (
|
||||
VodafoneStationEntityDescription(
|
||||
key="phone_num1",
|
||||
translation_key="phone_num1",
|
||||
is_suitable=lambda info: info["phone_unavailable1"] == "0",
|
||||
is_suitable=lambda info: info["phone_num1"] != "",
|
||||
),
|
||||
VodafoneStationEntityDescription(
|
||||
key="phone_num2",
|
||||
translation_key="phone_num2",
|
||||
is_suitable=lambda info: info["phone_unavailable2"] == "0",
|
||||
is_suitable=lambda info: info["phone_num2"] != "",
|
||||
),
|
||||
VodafoneStationEntityDescription(
|
||||
key="sys_uptime",
|
||||
|
Loading…
x
Reference in New Issue
Block a user