Fix Shelly RPC RSSI sensor removal (#111035)

This commit is contained in:
Shay Levy 2024-02-21 05:05:59 +02:00 committed by GitHub
parent 2f2cdedddd
commit c690a9df83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 44 additions and 5 deletions

View file

@ -452,3 +452,13 @@ def async_create_issue_unsupported_firmware(
"ip_address": entry.data["host"],
},
)
def is_rpc_wifi_stations_disabled(
config: dict[str, Any], _status: dict[str, Any], key: str
) -> bool:
"""Return true if rpc all WiFi stations are disabled."""
if config[key]["sta"]["enable"] is True or config[key]["sta1"]["enable"] is True:
return False
return True