Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95925

None type object error message

$
0
0

@currest2620 wrote:

Hi all,

I have a script that cycles though various nanoleaf modes, the script has been running without incident till now. I am getting an error message “‘none type’ object has no attribute ‘is_on’”. The following appears in the log:

'NoneType' object has no attribute 'is_on'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1251, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 134, in service_handler
    if script.is_on:
AttributeError: 'NoneType' object has no attribute 'is_on'

I’ve tested each call in the services tab of the developer tools, all run fine. Anyone have any ideas?

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>