feat(humidifier): set target humidity step #4132
Annotations
2 warnings
|
tests (3.14):
custom_components/tuya_local/helpers/device_config.py#L703
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 703, 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#L679
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 702, 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 679, 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)
|