asantaga / wiserHomeAssistantPlatform

Platform and related climate/sensors to support the Drayton Wiser Home Heating System
MIT License
238 stars 44 forks source link

error setting up wiser switches #73

Closed phixion closed 4 years ago

phixion commented 4 years ago

I was wondering why my away-mode (wiser heating) switch was gone. It seems latest version cannot setup its switches:

Error while setting up wiser platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/wiser/switch.py", line 45, in async_setup_platform
    WiserSmartPlug(hass, data, plug.get("id"), plug.get("Name")) for plug in data.wiserhub.getSmartPlugs()
TypeError: 'NoneType' object is not iterable

Maybe its because I dont have any smartplugs from wiser?

scooper1 commented 4 years ago

Lastest version ment to fix smartplug issue

Sent from Yahoo Mail on Android

On Thu, 27 Feb 2020 at 16:23, Martin Spitznotifications@github.com wrote:
I was wondering why my away-mode (wiser heating) switch was gone. It seems latest version cannot setup its switches: Error while setting up wiser platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/config/custom_components/wiser/switch.py", line 45, in async_setup_platform WiserSmartPlug(hass, data, plug.get("id"), plug.get("Name")) for plug in data.wiserhub.getSmartPlugs() TypeError: 'NoneType' object is not iterable

Maybe its because I dont have any smartplugs from wiser?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

phixion commented 4 years ago

reinstalled via HACS and all switches are back now. SOrry for wasting your time

asantaga commented 4 years ago

no thats ok, it appears to be a common problem, the upgrade in HACS isnt doing the job properly..