Fix lutron_caseta occupancy sensors

This commit is contained in:
J. Nick Koston
2022-05-04 14:42:38 -05:00
parent eb77f8db85
commit f046b53a72

View File

@@ -306,6 +306,13 @@ class LutronCasetaDevice(Entity):
self._device = device
self._smartbridge = bridge
self._bridge_device = bridge_device
if "serial" not in self._device:
#
# Occupancy sensors do not have
# a unique serial since all of the ones
# in the same room are grouped together
#
return
info = DeviceInfo(
identifiers={(DOMAIN, self.serial)},
manufacturer=MANUFACTURER,