Skip to content

Commit

Permalink
Fix getting WLAN name in image entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus authored and Markus committed Dec 6, 2023
1 parent 56ed883 commit c71c309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/unifi_voucher/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def available(self) -> bool:
@callback
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
if (_wlan_name := self.coordinator.config_entry.options.get(CONF_WLAN_NAME, "")) != self.current_wlan_name:
if (_wlan_name := self.coordinator.get_wlan_name()) != self.current_wlan_name:
LOGGER.debug("Guest WLAN name changed to %s", _wlan_name)

self.current_wlan_name = _wlan_name
Expand Down

0 comments on commit c71c309

Please sign in to comment.