Error ist still persist:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/lunos/fan.py:437
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:52:09 (1 occurrences)
Last logged: 23:52:09
[1439978448] 'LUNOSFan' object has no attribute 'async_set_precentage'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, 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 service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/config/custom_components/lunos/fan.py", line 437, in async_turn_off
await self.async_set_precentage(0)
AttributeError: 'LUNOSFan' object has no attribute 'async_set_precentage'
Эта ошибка возникла в кастомной интеграции.
Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/lunos/fan.py:320
Integration: LUNOS Heat Recovery Ventilation (documentation, issues)
First occurred: 23:53:29 (1 occurrences)
Last logged: 23:53:29
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: name 'mode' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, 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 service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/config/custom_components/lunos/fan.py", line 320, in async_set_preset_mode
if mode not in self.preset_modes:
NameError: name 'mode' is not defined
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/lunos/fan.py:320
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:51:50 (5 occurrences)
Last logged: 23:53:29
[1439978448] name 'mode' is not defined
[1439978448] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, 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 service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/config/custom_components/lunos/fan.py", line 430, in async_turn_on
await self.async_set_preset_mode(preset)
File "/config/custom_components/lunos/fan.py", line 320, in async_set_preset_mode
if mode not in self.preset_modes:
NameError: name 'mode' is not defined