Fix Fritz Wi-Fi 6 networks with same name as other Wi-Fi (#52588)

This commit is contained in:
Simone Chemelli 2021-07-06 15:49:22 +02:00 committed by GitHub
parent a70dae0843
commit 046eb1690a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ def wifi_entities_list(
) -> list[FritzBoxWifiSwitch]: ) -> list[FritzBoxWifiSwitch]:
"""Get list of wifi entities.""" """Get list of wifi entities."""
_LOGGER.debug("Setting up %s switches", SWITCH_TYPE_WIFINETWORK) _LOGGER.debug("Setting up %s switches", SWITCH_TYPE_WIFINETWORK)
std_table = {"ac": "5Ghz", "n": "2.4Ghz"} std_table = {"ax": "Wifi6", "ac": "5Ghz", "n": "2.4Ghz"}
networks: dict = {} networks: dict = {}
for i in range(4): for i in range(4):
if not ("WLANConfiguration" + str(i)) in fritzbox_tools.connection.services: if not ("WLANConfiguration" + str(i)) in fritzbox_tools.connection.services: