If time_at_elevation
was zero, it would cause the following error:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:356
integration: Sensor (documentation, issues)
First occurred: 2:06:28 PM (1 occurrences)
Last logged: 2:06:28 PM
Error while setting up sun2 platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/sun2/helpers.py", line 513, in async_setup_entry
cls(hass, entry, async_add_entities)
File "/config/custom_components/sun2/helpers.py", line 417, in __init__
self._entities = list(self._get_entities())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sun2/sensor.py", line 1217, in _config_sensors
raise ValueError(f"Unexpected sensor config: {config}")
ValueError: Unexpected sensor config: {'unique_id': 'sa3', 'time_at_elevation': 0.0, 'direction': 'rising', 'name': 'sa3', 'icon': 'mdi:weather-sunset-up'}
This release fixes that problem