Fix aurora sensor not converting latitude and longitude correctly (#28643)
This commit is contained in:
1 parent
260596d11b
commit
6b7be35f4a
3 files changed
+262
-242
No files matched your search
@@ -74,11 +74,11 @@ class TestAuroraSensorSetUp(unittest.TestCase):
|
||||
entities.append(entity)
|
||||
|
||||
config = {"name": "Test", "forecast_threshold": 1}
|
||||
self.hass.config.longitude = 5
|
||||
self.hass.config.latitude = 5
|
||||
self.hass.config.longitude = 18.987
|
||||
self.hass.config.latitude = 69.648
|
||||
|
||||
aurora.setup_platform(self.hass, config, mock_add_entities)
|
||||
|
||||
aurora_component = entities[0]
|
||||
assert aurora_component.aurora_data.visibility_level == "5"
|
||||
assert aurora_component.aurora_data.visibility_level == "16"
|
||||
assert aurora_component.is_on
|
||||
Reference in new issue
Block a user