Resolves #17196, Resolves #18739 - Hue Beyond light fixture errors (#19874)

* Resolves #17196, Resolves #18739 - Hue Beyond light fixtures being incorrectly recognized

* Removed long code lines that were failing code review

* Removed trailing whitespace
pull/19897/head
Alistair Galbraith 2019-01-08 20:13:47 -08:00 committed by Paulus Schoutsen
parent 4ec313cb3b
commit f019131352
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@ class HueLight(Light):
@property
def device_info(self):
"""Return the device info."""
if self.light.type in ('LightGroup', 'Room'):
if self.light.type in ('LightGroup', 'Room',
'Luminaire', 'LightSource'):
return None
return {