Code: Alles auswählen
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/hahm/cover.py:210
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 08:46:18 (2 occurrences)
Last logged: 08:46:31
[281473250769264] object NoneType can't be used in 'await' expression
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 190, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 927, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
await result
File "/config/custom_components/hahm/cover.py", line 210, in async_close_cover
await self._hm_entity.close_cover()
File "/usr/local/lib/python3.9/site-packages/hahomematic/devices/cover.py", line 324, in close_cover
await self._e_door_command.send_value(GARAGE_DOOR_COMMAND_CLOSE)
TypeError: object NoneType can't be used in 'await' expression