Had a DLINK W110 switch working properly on 0.27.x
After updating to 0.28.0 getting these errors:
16-09-12 07:09:30 homeassistant.components.switch: Error while setting up platform dlink
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 107, in _setup_platform
discovery_info)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/dlink.py”, line 55, in setup_platform
name)])
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 198, in add_entities
if self.component.add_entity(entity, self):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 134, in add_entity
entity.update_ha_state()
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py”, line 159, in update_ha_state
device_attr = self.device_state_attributes
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/dlink.py”, line 75, in device_state_attributes
ui_temp = self.units.temperature(int(self.smartplug.temperature),
File “/home/pi/.homeassistant/deps/pyW215/pyW215.py”, line 184, in temperature
return self.SOAPAction(‘GetCurrentTemperature’, ‘CurrentTemperature’, self.moduleParameters(“3”))
File “/home/pi/.homeassistant/deps/pyW215/pyW215.py”, line 143, in SOAPAction
value = root.find(’.//{http://purenetworks.com/HNAP1/}%s’ % (responseElement)).text
AttributeError: ‘NoneType’ object has no attribute ‘text’