core: Hunter Douglas Powerview: TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
The problem
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:485
First occurred: 1:34:21 PM (9 occurrences)
Last logged: 2:25:19 PM
websocket_api script: Error executing script. Unexpected error for choose at pos 1: unsupported operand type(s) for /: 'NoneType' and 'int'
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: unsupported operand type(s) for /: 'NoneType' and 'int'
websocket_api script: Set Kitchen Blinds if GloomyTV is on: If at step 1: Error executing script. Unexpected error for call_service at pos 1: unsupported operand type(s) for /: 'NoneType' and 'int'
websocket_api script: Set Kitchen Blinds if GloomyTV is on: Error executing script. Unexpected error for if at pos 1: unsupported operand type(s) for /: 'NoneType' and 'int'
websocket_api script: Error executing script. Unexpected error for if at pos 1: unsupported operand type(s) for /: 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 485, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 723, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 685, in _async_run_long_action
return long_task.result()
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/cover.py", line 174, in async_close_cover
self._async_schedule_update_for_transition(self.transition_steps)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/cover.py", line 682, in transition_steps
primary = (self.positions.primary / 2) + 50
~~~~~~~~~~~~~~~~~~~~~~~^~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
What version of Home Assistant Core has the issue?
core-2024.3.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Hunter Douglas PowerView
Link to integration documentation on our website
https://www.home-assistant.io/integrations/hunterdouglas_powerview/
Diagnostics information
When calling Cover.Close or Cover.Open on one of my duolite blinds I can sometimes get the above stacktrace. It seems that once this happens to one blind, it continues to happen to that same blind unless/until I restart the integration. Once I do, it begins working again.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Just the above stack trace.
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 18 (8 by maintainers)
@TrialMaster if you look at your logs you will likely see the same NoneType errors as noted here
They should start working again in a coming release