Fix Aurora integration casts longitude and latitude to integer (#127740)

Fix Aurora integration casts longitude and latitude to integer (#100817)
This commit is contained in:
Johan Gustafsson
2024-10-11 17:31:07 +02:00
committed by Franck Nijhof
parent 31a075fb13
commit 2c99fdc092
@@ -38,8 +38,8 @@ class AuroraDataUpdateCoordinator(DataUpdateCoordinator[int]):
)
self.api = AuroraForecast(async_get_clientsession(hass))
self.latitude = int(self.config_entry.data[CONF_LATITUDE])
self.longitude = int(self.config_entry.data[CONF_LONGITUDE])
self.latitude = round(self.config_entry.data[CONF_LATITUDE])
self.longitude = round(self.config_entry.data[CONF_LONGITUDE])
self.threshold = int(
self.config_entry.options.get(CONF_THRESHOLD, DEFAULT_THRESHOLD)
)