Upgrade black to 20.8b1 (#39287)
This commit is contained in:
1 parent
0d7eec710c
commit
1c2ebdf307
574 files changed
+4389
-1725
No files matched your search
@@ -31,18 +31,34 @@ def async_reload(hass):
|
||||
|
||||
@bind_hass
|
||||
def set_group(
|
||||
hass, object_id, name=None, entity_ids=None, icon=None, add=None,
|
||||
hass,
|
||||
object_id,
|
||||
name=None,
|
||||
entity_ids=None,
|
||||
icon=None,
|
||||
add=None,
|
||||
):
|
||||
"""Create/Update a group."""
|
||||
hass.add_job(
|
||||
async_set_group, hass, object_id, name, entity_ids, icon, add,
|
||||
async_set_group,
|
||||
hass,
|
||||
object_id,
|
||||
name,
|
||||
entity_ids,
|
||||
icon,
|
||||
add,
|
||||
)
|
||||
|
||||
|
||||
@callback
|
||||
@bind_hass
|
||||
def async_set_group(
|
||||
hass, object_id, name=None, entity_ids=None, icon=None, add=None,
|
||||
hass,
|
||||
object_id,
|
||||
name=None,
|
||||
entity_ids=None,
|
||||
icon=None,
|
||||
add=None,
|
||||
):
|
||||
"""Create/Update a group."""
|
||||
data = {
|
||||
|
||||
@@ -667,11 +667,16 @@ async def test_reload(hass):
|
||||
assert hass.states.get("light.light_group").state == STATE_ON
|
||||
|
||||
yaml_path = path.join(
|
||||
_get_fixtures_base_path(), "fixtures", "group/configuration.yaml",
|
||||
_get_fixtures_base_path(),
|
||||
"fixtures",
|
||||
"group/configuration.yaml",
|
||||
)
|
||||
with patch.object(hass_config, "YAML_CONFIG_FILE", yaml_path):
|
||||
await hass.services.async_call(
|
||||
DOMAIN, SERVICE_RELOAD, {}, blocking=True,
|
||||
DOMAIN,
|
||||
SERVICE_RELOAD,
|
||||
{},
|
||||
blocking=True,
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
Reference in new issue
Block a user