Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing data for Guardian "AP enabled" binary sensor (#38681)
  • Loading branch information
bachya authored and balloob committed Aug 9, 2020
1 parent 65450d8 commit 6f58848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/guardian/binary_sensor.py
Expand Up @@ -90,7 +90,7 @@ async def _async_internal_added_to_hass(self) -> None:
def _async_update_from_latest_data(self) -> None:
"""Update the entity."""
if self._kind == SENSOR_KIND_AP_INFO:
self._is_on = self._coordinators[API_WIFI_STATUS].data["ap_enabled"]
self._is_on = self._coordinators[API_WIFI_STATUS].data["station_connected"]
self._attrs.update(
{
ATTR_CONNECTED_CLIENTS: self._coordinators[API_WIFI_STATUS].data[
Expand Down

0 comments on commit 6f58848

Please sign in to comment.