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 GitHub
parent b4dfd08bc4
commit 4693f436a5

View File

@@ -38,8 +38,8 @@ class AuroraDataUpdateCoordinator(DataUpdateCoordinator[int]):
) )
self.api = AuroraForecast(async_get_clientsession(hass)) self.api = AuroraForecast(async_get_clientsession(hass))
self.latitude = int(self.config_entry.data[CONF_LATITUDE]) self.latitude = round(self.config_entry.data[CONF_LATITUDE])
self.longitude = int(self.config_entry.data[CONF_LONGITUDE]) self.longitude = round(self.config_entry.data[CONF_LONGITUDE])
self.threshold = int( self.threshold = int(
self.config_entry.options.get(CONF_THRESHOLD, DEFAULT_THRESHOLD) self.config_entry.options.get(CONF_THRESHOLD, DEFAULT_THRESHOLD)
) )