mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Xiaomi Aqara: Add new cube model (sensor_cube.aqgl01) (#14393)
This commit is contained in:
parent
621c653fed
commit
d6b81fb345
@ -53,7 +53,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
'channel_1', hass, gateway))
|
'channel_1', hass, gateway))
|
||||||
devices.append(XiaomiButton(device, 'Wall Switch (Both)',
|
devices.append(XiaomiButton(device, 'Wall Switch (Both)',
|
||||||
'dual_channel', hass, gateway))
|
'dual_channel', hass, gateway))
|
||||||
elif model in ['cube', 'sensor_cube']:
|
elif model in ['cube', 'sensor_cube', 'sensor_cube.aqgl01']:
|
||||||
devices.append(XiaomiCube(device, hass, gateway))
|
devices.append(XiaomiCube(device, hass, gateway))
|
||||||
add_devices(devices)
|
add_devices(devices)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user