mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix miio air quality sensor (#28828)
Fix https://github.com/home-assistant/home-assistant/issues/28827
This commit is contained in:
parent
d1241147c8
commit
0a9ac7e655
@ -54,7 +54,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
device_info.firmware_version,
|
device_info.firmware_version,
|
||||||
device_info.hardware_version,
|
device_info.hardware_version,
|
||||||
)
|
)
|
||||||
device = AirMonitorB1(name, AirQualityMonitor(host, token, model), unique_id)
|
device = AirMonitorB1(name, AirQualityMonitor(host, token, model=model), unique_id)
|
||||||
|
|
||||||
async_add_entities([device], update_before_add=True)
|
async_add_entities([device], update_before_add=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user