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
@@ -48,7 +48,8 @@ async def test_get_triggers(hass, device_reg, entity_reg):
|
||||
config_entry = MockConfigEntry(domain=DOMAIN, data={})
|
||||
config_entry.add_to_hass(hass)
|
||||
device_entry = device_reg.async_get_or_create(
|
||||
config_entry_id=config_entry.entry_id, identifiers={(DOMAIN, "host", 1234)},
|
||||
config_entry_id=config_entry.entry_id,
|
||||
identifiers={(DOMAIN, "host", 1234)},
|
||||
)
|
||||
entity_reg.async_get_or_create(MP_DOMAIN, DOMAIN, "5678", device_id=device_entry.id)
|
||||
expected_triggers = [
|
||||
@@ -113,7 +114,10 @@ async def test_if_fires_on_state_change(hass, calls, kodi_media_player):
|
||||
)
|
||||
|
||||
await hass.services.async_call(
|
||||
MP_DOMAIN, "turn_on", {"entity_id": kodi_media_player}, blocking=True,
|
||||
MP_DOMAIN,
|
||||
"turn_on",
|
||||
{"entity_id": kodi_media_player},
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
@@ -121,7 +125,10 @@ async def test_if_fires_on_state_change(hass, calls, kodi_media_player):
|
||||
assert calls[0].data["some"] == f"turn_on - {kodi_media_player}"
|
||||
|
||||
await hass.services.async_call(
|
||||
MP_DOMAIN, "turn_off", {"entity_id": kodi_media_player}, blocking=True,
|
||||
MP_DOMAIN,
|
||||
"turn_off",
|
||||
{"entity_id": kodi_media_player},
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in new issue
Block a user