Traceback (most recent call last):


 "<stdin>", line 1, in <module>
TypeError: function takes exactly 1 argument (0 given)

Traceback (most recent call last):


 "/usr/src/app/homeassistant/helpers/entity.py", line 215, in async_update_ha_state

state = self.state


 "/usr/src/app/homeassistant/helpers/entity.py", line 379, in state

return STATE_ON if self.is_on else STATE_OFF


 "/usr/src/app/homeassistant/components/switch/netio.py", line 162, in is_on

return self.netio.states[self.outlet - 1]
TypeError: unsupported operand type(s) for -: 'str' and 'int'
