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.
This commit is contained in:
Eric Nagley 2018-12-14 02:52:29 -05:00 committed by Fabian Affolter
parent 74a93fe764
commit 377c61203d

View file

@ -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