1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof
2020-08-27 13:56:20 +02:00
committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
574 changed files with 4389 additions and 1725 deletions

View File

@@ -62,7 +62,9 @@ async def test_coordinates_function_as_state(hass):
async def test_coordinates_function_device_tracker_in_zone(hass):
"""Test coordinates function."""
hass.states.async_set(
"zone.home", "zoning", {"latitude": 32.87336, "longitude": -117.22943},
"zone.home",
"zoning",
{"latitude": 32.87336, "longitude": -117.22943},
)
hass.states.async_set("device_tracker.device", "home")
assert (
@@ -87,7 +89,8 @@ async def test_coordinates_function_device_tracker_from_input_select(hass):
def test_coordinates_function_returns_none_on_recursion(hass):
"""Test coordinates function."""
hass.states.async_set(
"test.first", "test.second",
"test.first",
"test.second",
)
hass.states.async_set("test.second", "test.first")
assert location.find_coordinates(hass, "test.first") is None
@@ -96,7 +99,8 @@ def test_coordinates_function_returns_none_on_recursion(hass):
async def test_coordinates_function_returns_none_if_invalid_coord(hass):
"""Test test_coordinates function."""
hass.states.async_set(
"test.object", "abc",
"test.object",
"abc",
)
assert location.find_coordinates(hass, "test.object") is None