Fix deconz allow_clip_sensor and allow_deconz_groups options (#25811)

This commit is contained in:
Nikolay Vasilchuk authored and Robert Svensson committed 2019-08-09 19:31:58 +02:00
1 parent ecddeb2dd1
commit 8b6ddc22a5
5 files changed
+30 -14

No files matched your search

+2 -2
View File
@@ -63,12 +63,12 @@ class DeconzGateway:
@property
def allow_clip_sensor(self) -> bool:
"""Allow loading clip sensor from gateway."""
return self.config_entry.data.get(CONF_ALLOW_CLIP_SENSOR, True)
return self.config_entry.options.get(CONF_ALLOW_CLIP_SENSOR, True)
@property
def allow_deconz_groups(self) -> bool:
"""Allow loading deCONZ groups from gateway."""
return self.config_entry.data.get(CONF_ALLOW_DECONZ_GROUPS, True)
return self.config_entry.options.get(CONF_ALLOW_DECONZ_GROUPS, True)
async def async_update_device_registry(self):
"""Update device registry."""