From 17d07da27ec7ef07cf6ce018e2d6d34972c4d366 Mon Sep 17 00:00:00 2001 From: Riccardo Zulian Date: Mon, 27 May 2024 18:22:14 +0200 Subject: [PATCH] fix occupancyGroup (#101) * Include the occupancyGroup only if the integrationID is not zero --- pylutron/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pylutron/__init__.py b/pylutron/__init__.py index 5ba6cdd..1b5018e 100644 --- a/pylutron/__init__.py +++ b/pylutron/__init__.py @@ -1227,11 +1227,12 @@ def __init__(self, lutron, group_number, uuid): def _bind_area(self, area): self._area = area self._integration_id = area.id - self._lutron.register_id(OccupancyGroup._CMD_TYPE, self) + if self._integration_id != 0: + self._lutron.register_id(OccupancyGroup._CMD_TYPE, self) @property def id(self): - """The integration id""" + """The integration id, which is the area's integration_id""" return self._integration_id @property