Google Wifi Integration via HACS - errors on startup

Hi,

I’ve just installed the Google Wifi integration via HACS, as per GitHub - djtimca/hagooglewifi: Home Assistant integration for Google Wifi systems.

Google Wifi is now showing up in Configuration > Integrations, as expected, but there are errors in the HA Logs, the first of which is shown below, which relates to the binary_sensor platform. There are similar messages for the other platforms: device_tracker, switch, light, sensor.

Logger: homeassistant.components.binary_sensor
Source: custom_components/googlewifi/binary_sensor.py:29
Integration: Binary sensor ([documentation](https://www.home-assistant.io/integrations/binary_sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+binary_sensor%22))
First occurred: 11:21:52 AM (1 occurrences)
Last logged: 11:21:52 AM

Error while setting up googlewifi platform for binary_sensor

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/googlewifi/binary_sensor.py", line 29, in async_setup_entry for system_id, system in coordinator.data.items(): AttributeError: 'NoneType' object has no attribute 'items'

Looking at the code within googlewifi/binary_sensor.py, line 29 referred to in the error text I’ve marked below with >>>

async def async_setup_entry(hass, entry, async_add_entities):
    """Set up the binary sensor platforms."""

    coordinator = hass.data[DOMAIN][entry.entry_id][COORDINATOR]
    entities = []


>>>    for system_id, system in coordinator.data.items():
        entity = GoogleWifiBinarySensor(
            coordinator=coordinator,
            name=f"Google Wifi System {system_id}",
            icon=DEFAULT_ICON,
            system_id=system_id,
            item_id=None,
        )
        entities.append(entity)

Similarly, for the device_tracker platform, error reads:

Logger: homeassistant.components.device_tracker
Source: custom_components/googlewifi/device_tracker.py:31
Integration: Device tracker (documentation, issues)
First occurred: 11:21:52 AM (1 occurrences)
Last logged: 11:21:52 AM

Error while setting up googlewifi platform for device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/googlewifi/device_tracker.py", line 31, in async_setup_entry
    for system_id, system in coordinator.data.items():
AttributeError: 'NoneType' object has no attribute 'items'

… and the code from googlewifi/device_tracker.py, line 31 is similarly marked with >>> below:

async def async_setup_entry(hass, entry, async_add_entities):
    """Set up the device tracker platforms."""

    coordinator = hass.data[DOMAIN][entry.entry_id][COORDINATOR]
    entities = []

>>>    for system_id, system in coordinator.data.items():
        for dev_id, device in system["devices"].items():
            device_name = f"{device['friendlyName']}"

            if device.get("friendlyType"):
                device_name = device_name + f" ({device['friendlyType']})"

I’ve tried removing the integration, and reinstalling, but I’m getting the same result.

Can anyone offer any advice?

Many thanks.