github pnbruckner/ha-sun2 1.1.1
Bug fix

latest releases: 3.3.3, 3.3.2, 3.3.1...
5 years ago

PR #3

Some sensors (such as dawn & dusk) were not returning correct values. Apparently astral's Location.solar_depression needs to be explicitly set to 'civil' for its functions to return expected values.

Also reorganize code (mostly class definitions) to make it easier in the future to add sensor types that need to adjust some of the existing behavior (e.g., elevation.)

Lastly, improve error handling a bit.

Don't miss a new ha-sun2 release

NewReleases is sending notifications on new releases.