Skip to content

fix: always send current power state (DP 1) in updates to prevent MCU… #4139

fix: always send current power state (DP 1) in updates to prevent MCU…

fix: always send current power state (DP 1) in updates to prevent MCU… #4139

Re-run triggered July 21, 2026 23:35
Status Failure
Total duration 2m 27s
Artifacts

tests.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
tests (3.14)
Process completed with exit code 1.
tests (3.14): tests/test_device.py#L366
test_set_values AttributeError: 'TuyaLocalDevice' object has no attribute '_config'
tests (3.14): tests/test_device.py#L308
test_async_set_property_sends_to_api AssertionError: Expected 'set_multiple_values' to have been called once. Called 0 times.
tests (3.14): custom_components/tuya_local/helpers/device_config.py#L709
coroutine 'AsyncMockMixin._execute_mock_call' was never awaited Coroutine created at (most recent call last) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/asyncio/base_events.py", line 677, in run_forever self._run_once() File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/asyncio/base_events.py", line 2048, in _run_once handle._run() File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/asyncio/events.py", line 94, in _run self._context.run(self._callback, *self._args) File "/home/runner/work/tuya-local/tuya-local/tests/test_humidifier.py", line 41, in test_init_entry await async_setup_entry(hass, entry, m_add_entities) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/humidifier.py", line 28, in async_setup_entry await async_tuya_setup_platform( File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/helpers/config.py", line 31, in async_tuya_setup_platform data[ecfg.config_id] = entity_class(device, ecfg) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/humidifier.py", line 57, in __init__ self._attr_target_humidity_step = self._humidity_dp.step(device) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/helpers/device_config.py", line 709, in step mapping = self._find_map_for_dps(device.get_property(self.id), device) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/unittest/mock.py", line 1176, in __call__ return self._mock_call(*args, **kwargs) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/unittest/mock.py", line 1180, in _mock_call return self._execute_mock_call(*args, **kwargs)
tests (3.14): custom_components/tuya_local/helpers/device_config.py#L685
coroutine 'AsyncMockMixin._execute_mock_call' was never awaited Coroutine created at (most recent call last) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/asyncio/base_events.py", line 2048, in _run_once handle._run() File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/asyncio/events.py", line 94, in _run self._context.run(self._callback, *self._args) File "/home/runner/work/tuya-local/tuya-local/tests/test_humidifier.py", line 41, in test_init_entry await async_setup_entry(hass, entry, m_add_entities) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/humidifier.py", line 28, in async_setup_entry await async_tuya_setup_platform( File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/helpers/config.py", line 31, in async_tuya_setup_platform data[ecfg.config_id] = entity_class(device, ecfg) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/humidifier.py", line 57, in __init__ self._attr_target_humidity_step = self._humidity_dp.step(device) File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/helpers/device_config.py", line 708, in step scale = self.scale(device) if scaled else 1 File "/home/runner/work/tuya-local/tuya-local/custom_components/tuya_local/helpers/device_config.py", line 685, in scale mapping = self._find_map_for_dps(device.get_property(self.id), device) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/unittest/mock.py", line 1176, in __call__ return self._mock_call(*args, **kwargs) File "/opt/hostedtoolcache/Python/3.14.6/x64/lib/python3.14/unittest/mock.py", line 1180, in _mock_call return self._execute_mock_call(*args, **kwargs)