From b78ad7c2b8e8ff51dbfb7c7f2467ef8ed8dd808d Mon Sep 17 00:00:00 2001 From: Shane Qi Date: Fri, 12 Jun 2020 19:27:48 -0500 Subject: [PATCH] Implement device_info for LutronCasetaDevice (#36706) --- homeassistant/components/lutron_caseta/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/components/lutron_caseta/__init__.py b/homeassistant/components/lutron_caseta/__init__.py index ff7ec61ecc8..40b65293f1d 100644 --- a/homeassistant/components/lutron_caseta/__init__.py +++ b/homeassistant/components/lutron_caseta/__init__.py @@ -127,6 +127,16 @@ class LutronCasetaDevice(Entity): """Return the unique ID of the device (serial).""" return str(self.serial) + @property + def device_info(self): + """Return the device info.""" + return { + "identifiers": {(DOMAIN, self.serial)}, + "name": self.name, + "manufacturer": "Lutron", + "model": self._device["model"], + } + @property def device_state_attributes(self): """Return the state attributes."""