From 85497c6b7559bae31fe181a2a80b2007cafc1dd6 Mon Sep 17 00:00:00 2001 From: Shane Qi Date: Mon, 3 Aug 2020 09:50:47 -0500 Subject: [PATCH] Fix Lutron Caseta devices loading when missing serials (#38255) Co-authored-by: Martin Hjelmare --- .../components/lutron_caseta/binary_sensor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/components/lutron_caseta/binary_sensor.py b/homeassistant/components/lutron_caseta/binary_sensor.py index 4295e3bb367..b517dda1ba3 100644 --- a/homeassistant/components/lutron_caseta/binary_sensor.py +++ b/homeassistant/components/lutron_caseta/binary_sensor.py @@ -56,6 +56,16 @@ class LutronOccupancySensor(LutronCasetaDevice, BinarySensorEntity): """Return a unique identifier.""" return f"occupancygroup_{self.device_id}" + @property + def device_info(self): + """Return the device info. + + Sensor entities are aggregated from one or more physical + sensors by each room. Therefore, there shouldn't be devices + related to any sensor entities. + """ + return None # pylint: disable=useless-return + @property def device_state_attributes(self): """Return the state attributes."""