You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just got my pool pump switch working and I wanted to use this to automate it, am getting the following when I call the service from dev tools
`This error originated from a custom integration.
Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/pool_pump/init.py:97
Integration: Pool Pump Manager (documentation)
First occurred: 1:34:21 AM (1 occurrences)
Last logged: 1:34:21 AM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'state'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 366, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 566, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 97, in check
_LOGGER.debug("Pool pump mode: %s", mode.state)
AttributeError: 'NoneType' object has no attribute 'state'
`
The text was updated successfully, but these errors were encountered:
Just got my pool pump switch working and I wanted to use this to automate it, am getting the following when I call the service from dev tools
`This error originated from a custom integration.
Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/pool_pump/init.py:97
Integration: Pool Pump Manager (documentation)
First occurred: 1:34:21 AM (1 occurrences)
Last logged: 1:34:21 AM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'state'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 366, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 566, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 97, in check
_LOGGER.debug("Pool pump mode: %s", mode.state)
AttributeError: 'NoneType' object has no attribute 'state'
`
The text was updated successfully, but these errors were encountered: