mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Tidy.
This commit is contained in:
parent
5521096c02
commit
6e6c3c5cd5
@ -41,6 +41,7 @@ OFF_ACTION = 'turn_off'
|
|||||||
STATE_TRUE = 'True'
|
STATE_TRUE = 'True'
|
||||||
STATE_FALSE = 'False'
|
STATE_FALSE = 'False'
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
""" Sets up the switches. """
|
""" Sets up the switches. """
|
||||||
@ -123,7 +124,6 @@ class SwitchTemplate(SwitchDevice):
|
|||||||
|
|
||||||
self.hass.bus.listen(EVENT_STATE_CHANGED, _update_callback)
|
self.hass.bus.listen(EVENT_STATE_CHANGED, _update_callback)
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
""" Returns the name of the device. """
|
""" Returns the name of the device. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user