Skip to content

Commit

Permalink
Add Philips Zhirui Downlight support (#18455)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored and rytilahti committed Nov 14, 2018
1 parent 419400f commit d2907b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/light/xiaomi_miio.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'philips.light.candle',
'philips.light.candle2',
'philips.light.mono1',
'philips.light.downlight',
]),
})

Expand Down Expand Up @@ -152,7 +153,8 @@ async def async_setup_platform(hass, config, async_add_entities,
hass.data[DATA_KEY][host] = device
elif model in ['philips.light.bulb',
'philips.light.candle',
'philips.light.candle2']:
'philips.light.candle2',
'philips.light.downlight']:
from miio import PhilipsBulb
light = PhilipsBulb(host, token)
device = XiaomiPhilipsBulb(name, light, model, unique_id)
Expand Down

0 comments on commit d2907b8

Please sign in to comment.