KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
763 stars 122 forks source link

Switch to enum.StrEnum #1353

Closed jamesonuk closed 3 months ago

jamesonuk commented 4 months ago

Motivation:

Just avoiding future deprecation and logging warning of old alias as per https://developers.home-assistant.io/blog/2024/04/08/deprecated-backports-and-typing-aliases/

Changes:

import enum.StrEnum rather than homeassistant.backports.enum.StrEnum

Related issue (check one):

Checklist (check one):

Test-Hardware list (for code changes)

HA Version: 2024.5.3 Zigbee2MQTT Version: 1.37.1 TRV Hardware: Sonoff TRVs 1.1.5

New device mappings