Correct ZHA illumination conversion (#23853)
* fix illumination values * correct formula * update illuminance calculation * update test
This commit is contained in:
parent
9b21774392
commit
128ce589e1
2 changed files with 9 additions and 1 deletions
|
@ -139,7 +139,7 @@ async def async_test_pressure(hass, device_info):
|
|||
async def async_test_illuminance(hass, device_info):
|
||||
"""Test illuminance sensor."""
|
||||
await send_attribute_report(hass, device_info["cluster"], 0, 10)
|
||||
assert_state(hass, device_info, '10', 'lx')
|
||||
assert_state(hass, device_info, '1.0', 'lx')
|
||||
|
||||
|
||||
async def async_test_metering(hass, device_info):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue