mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fix error when passing a whole number to location selector (#108952)
* Fix error when passing an integer to location selector * fix tests * more fix tests * don't mutate original dict * remove string testcase
This commit is contained in:
@@ -858,6 +858,11 @@ def test_language_selector_schema(schema, valid_selections, invalid_selections)
|
||||
"longitude": 2.0,
|
||||
"radius": 3.0,
|
||||
},
|
||||
{
|
||||
"latitude": 1,
|
||||
"longitude": 2,
|
||||
"radius": 3,
|
||||
},
|
||||
),
|
||||
(
|
||||
None,
|
||||
@@ -865,7 +870,6 @@ def test_language_selector_schema(schema, valid_selections, invalid_selections)
|
||||
{},
|
||||
{"latitude": 1.0},
|
||||
{"longitude": 1.0},
|
||||
{"latitude": 1.0, "longitude": "1.0"},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user