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-06 17:33:54 +02:00 committed by Franck Nijhof
parent 31a075fb13
commit 2c99fdc092
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -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)
)