From 377c61203d2e684b9b8e113eb120213e85c4487f Mon Sep 17 00:00:00 2001 From: Eric Nagley Date: Fri, 14 Dec 2018 02:52:29 -0500 Subject: [PATCH] Fix call to super() (#19279) * home-assistant/home-assistant#19273: fix call to super() * home-assistant/home-assistant#19273: adjust to python3 standards. * home-assistant/home-assistant#19273: remove bad test. --- homeassistant/components/light/lutron.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/light/lutron.py b/homeassistant/components/light/lutron.py index ee08e532ce7..359ef0114c5 100644 --- a/homeassistant/components/light/lutron.py +++ b/homeassistant/components/light/lutron.py @@ -42,7 +42,7 @@ class LutronLight(LutronDevice, Light): def __init__(self, area_name, lutron_device, controller): """Initialize the light.""" self._prev_brightness = None - super().__init__(self, area_name, lutron_device, controller) + super().__init__(area_name, lutron_device, controller) @property def supported_features(self): @@ -75,8 +75,7 @@ class LutronLight(LutronDevice, Light): @property def device_state_attributes(self): """Return the state attributes.""" - attr = {} - attr['lutron_integration_id'] = self._lutron_device.id + attr = {'lutron_integration_id': self._lutron_device.id} return attr @property