2025-12-04 21:24:03.269 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tplink_deco platform for sensor: 'NoneType' object has no attribute 'mac'
Traceback (most recent call last):
File "C:\Program Files\HassWP2\python\Lib\site-packages\homeassistant\helpers\entity_platform.py", line 451, in _async_setup_platform
await asyncio.shield(awaitable)
File "C:\Program Files\HassWP2\config\custom_components\tplink_deco\sensor.py", line 86, in async_setup_entry
add_sensors_for_deco(None) # Total
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Program Files\HassWP2\config\custom_components\tplink_deco\sensor.py", line 41, in add_sensors_for_deco
f"{coordinator_decos.data.master_deco.mac}_total"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'mac'
2025-12-04 21:24:03.269 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tplink_deco platform for sensor: 'NoneType' object has no attribute 'mac'
Traceback (most recent call last):
File "C:\Program Files\HassWP2\python\Lib\site-packages\homeassistant\helpers\entity_platform.py", line 451, in _async_setup_platform
await asyncio.shield(awaitable)
File "C:\Program Files\HassWP2\config\custom_components\tplink_deco\sensor.py", line 86, in async_setup_entry
add_sensors_for_deco(None) # Total
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Program Files\HassWP2\config\custom_components\tplink_deco\sensor.py", line 41, in add_sensors_for_deco
f"{coordinator_decos.data.master_deco.mac}_total"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'mac'