PEP8: fix style (#11167)

This commit is contained in:
Bas Nijholt 2019-11-14 14:55:57 +01:00 committed by Fabian Affolter
parent e5be9cc393
commit a2c6b7157a

View File

@ -57,7 +57,7 @@ import appdaemon.plugins.hass.hassapi as hass
class FlashyMotionLights(hass.Hass): class FlashyMotionLights(hass.Hass):
def initialize(self): def initialize(self):
self.listen_state(self.motion, "binary_sensor.drive", new = "on") self.listen_state(self.motion, "binary_sensor.drive", new="on")
def motion(self, entity, attribute, old, new, kwargs): def motion(self, entity, attribute, old, new, kwargs):
if self.sun_down(): if self.sun_down():
@ -78,7 +78,7 @@ import appdaemon.plugins.hass.hassapi as hass
class MotionLights(hass.Hass): class MotionLights(hass.Hass):
def initialize(self): def initialize(self):
self.listen_state(self.motion, "binary_sensor.drive", new = "on") self.listen_state(self.motion, "binary_sensor.drive", new="on")
def motion(self, entity, attribute, old, new, kwargs): def motion(self, entity, attribute, old, new, kwargs):
if self.self.sun_down(): if self.self.sun_down():