Suggestions regarding this error - Wemo Insight switches

15-11-25 18:12:33 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wemo
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 136, in _setup_platform
self.hass, platform_config, self.add_entities, discovery_info)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/wemo.py”, line 35, in setup_platform
switches = pywemo.discover_devices()
File “/usr/local/lib/python3.4/dist-packages/pywemo/discovery.py”, line 18, in discover_devices
ssdp_entries = ssdp.scan(st, max_entries=max_devices, match_mac=match_mac)
File “/usr/local/lib/python3.4/dist-packages/pywemo/ssdp.py”, line 239, in scan
mac = entry.description.get(‘device’).get(‘macAddress’)
AttributeError: ‘NoneType’ object has no attribute ‘get’

This error has persisted through multiple updates of HA. Any suggestions?

That seems to be a bug in pywemo discovery code, I’ll see if I can fix that for the next release.

That would be great. Thank you. I guess I must be the only one using these switches? I don’t see anyone else reporting issues. Or is it just me?

Thanks!
tobias.

I know that Pavoni has his whole house full of wemos. He is also the one that just fixed it and made sure it will be included in the next release of Home Assistant: github.com/balloob/pywemo/issues/14

I have about 10 wemo makers and switches in my house and they seem to work pretty well.

The bug a problem when the wemo scanner found a non-wemo device that it didn’t handle properly. So it was probably an unrelated PnP device on your network that caused this bug to show up.

Post if you see other wemo issues and I’ll try to help.

Thank you both for the help. I appreciate your time. tobias.