Black
This commit is contained in:
parent
da05dfe708
commit
4de97abc3a
2676 changed files with 163166 additions and 140084 deletions
|
@ -14,14 +14,19 @@ def init(empty=False):
|
|||
"""Initialize the platform with devices."""
|
||||
global DEVICES
|
||||
|
||||
DEVICES = [] if empty else [
|
||||
MockToggleDevice('Ceiling', STATE_ON),
|
||||
MockToggleDevice('Ceiling', STATE_OFF),
|
||||
MockToggleDevice(None, STATE_OFF)
|
||||
]
|
||||
DEVICES = (
|
||||
[]
|
||||
if empty
|
||||
else [
|
||||
MockToggleDevice("Ceiling", STATE_ON),
|
||||
MockToggleDevice("Ceiling", STATE_OFF),
|
||||
MockToggleDevice(None, STATE_OFF),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities_callback,
|
||||
discovery_info=None):
|
||||
async def async_setup_platform(
|
||||
hass, config, async_add_entities_callback, discovery_info=None
|
||||
):
|
||||
"""Return mock devices."""
|
||||
async_add_entities_callback(DEVICES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue