Skip to content

Commit

Permalink
fix occupancyGroup (#101)
Browse files Browse the repository at this point in the history
* Include the occupancyGroup only if the integrationID is not zero
  • Loading branch information
rzulian committed May 27, 2024
1 parent 7f368b9 commit 17d07da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pylutron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17d07da

Please sign in to comment.