Running v0.20.9. sensor.astroweather_sun_next_rising_astronomical and sensor.astroweather_sun_next_setting_astronomical hangs when loading integration.
Logger: homeassistant.components.sensor
Source: custom_components/astroweather/sensor.py:322
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 01:12:27 (2 occurrences)
Last logged: 01:12:27
Error adding entities for domain sensor with platform astroweather
Error while setting up astroweather platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 799, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/astroweather/sensor.py", line 322, in state
return getattr(self.coordinator.data[SENSOR_NAME], self._sensor, None)
File "/usr/local/lib/python3.9/site-packages/pyastroweatherio/dataclasses.py", line 244, in sun_next_setting_astro
return self._sun_next_setting_astro.replace(microsecond=0).isoformat()
TypeError: str.replace() takes no keyword arguments
I think this is related to my location as i live in Finland and sun elevation is getting smaller towards summer.
Running v0.20.9. sensor.astroweather_sun_next_rising_astronomical and sensor.astroweather_sun_next_setting_astronomical hangs when loading integration.
I think this is related to my location as i live in Finland and sun elevation is getting smaller towards summer.
All other sensor are working fine.