nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
675 stars 45 forks source link

fix: Update switch.py #389

Closed z-master42 closed 1 week ago

z-master42 commented 2 weeks ago

Fixes #388. Minimum HA version for this is 2024.11.

nielsfaber commented 1 week ago

Looks good to me, thanks! @hacscred the hacs.json file contains the minimum required HA version for a certain release version, so backwards compatibility shouldn't be our concern.

hacscred commented 1 week ago

@nielsfaber People can install without using hacs. Such people are not imaginary as I am one of them. I have configured hacs, but I don't trust authors of custom components not to make mistakes at inconvenient times.

Perhaps having such a file also means that Home Assistant reads the file when it loads and then fills the logs with errors or warnings when the versions don't match, but otherwise your plan won't work in general.

z-master42 commented 1 week ago

I think the hacs.json tells HACS what the minimum HA version is for the integration to work. People with an older version of HA will therefore not be offered the update at all.

And people who install custom integrations manually without HACS should be smart enough to read changelogs and release notes to know if the integration will run with their HA version or not.