mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 17:15:19 +02:00
Fix lutron_caseta occupancy sensors
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user