Refactor code structure for improved readability and maintainability

This commit is contained in:
CeeWeasel
2026-01-19 14:47:59 -05:00
parent 6550521520
commit 97a0e678c0
84 changed files with 1614 additions and 1177 deletions
@@ -254,3 +254,11 @@ template:
availability: "{{ (states('climate.thermostat') not in ['unknown', 'unavailable']) }}"
device_class: duration
unit_of_measurement: min
- name: HVAC Preset Mode
unique_id: templatesensor_hvac_preset_mode
state: "{{state_attr('climate.thermostat','preset_mode')}}"
availability: "{{ (states('climate.thermostat') not in ['unknown', 'unavailable']) }}"
device_class: enum
attributes:
options: "{{state_attr('climate.thermostat','preset_modes')}}"