I’ve migrated to 0.20.7 today and I have a problem with my fake sensors. When calling the ramses_cc.put_zone_temp service, I have the following error in home assistant:
2022-07-04 21:58:15 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: temperature() missing 1 required positional argument: 'value'
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 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 697, 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 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 711, in _handle_entity_call
result = hass.async_run_job(partial(getattr(entity, func), **data)) # type: ignore[arg-type]
File "/usr/src/homeassistant/homeassistant/core.py", line 592, in async_run_job
return self.async_run_hass_job(HassJob(target), *args)
File "/usr/src/homeassistant/homeassistant/core.py", line 544, in async_run_hass_job
hassjob.target(*args)
File "/config/custom_components/ramses_cc/climate.py", line 300, in svc_put_zone_temp
self._device.sensor.temperature = temperature
File "/usr/local/lib/python3.9/site-packages/ramses_rf/devices_base.py", line 153, in wrapper
return fnc(*args, **kwargs)
TypeError: temperature() missing 1 required positional argument: 'value'
2022-07-04 21:58:15 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140258405091792] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 636, in handle_execute_script
await script_obj.async_run(msg.get("variables"), context=context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception
raise exception
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 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 697, 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 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 711, in _handle_entity_call
result = hass.async_run_job(partial(getattr(entity, func), **data)) # type: ignore[arg-type]
File "/usr/src/homeassistant/homeassistant/core.py", line 592, in async_run_job
return self.async_run_hass_job(HassJob(target), *args)
File "/usr/src/homeassistant/homeassistant/core.py", line 544, in async_run_hass_job
hassjob.target(*args)
File "/config/custom_components/ramses_cc/climate.py", line 300, in svc_put_zone_temp
self._device.sensor.temperature = temperature
File "/usr/local/lib/python3.9/site-packages/ramses_rf/devices_base.py", line 153, in wrapper
return fnc(*args, **kwargs)
TypeError: temperature() missing 1 required positional argument: 'value'