Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieger committed Sep 9, 2023
1 parent ecd317b commit 636277b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions homeassistant/components/homeassistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,6 @@ async def async_handle_reload_config(call: ha.ServiceCall) -> None:

async def async_set_location(call: ha.ServiceCall) -> None:
"""Service handler to set location."""
await hass.config.async_update(
latitude=call.data[ATTR_LATITUDE], longitude=call.data[ATTR_LONGITUDE]
)

service_data = {
"latitude": call.data[ATTR_LATITUDE],
"longitude": call.data[ATTR_LONGITUDE],
Expand Down
2 changes: 1 addition & 1 deletion tests/components/homeassistant/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async def test_setting_location(hass: HomeAssistant) -> None:
{"latitude": 30, "longitude": 40},
blocking=True,
)
assert len(events) == 2
assert len(events) == 1
assert hass.config.latitude == 30
assert hass.config.longitude == 40
assert hass.config.elevation != 50
Expand Down

0 comments on commit 636277b

Please sign in to comment.