Skip to content

Commit

Permalink
Add switch to toggle the state of CCU programs
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Dec 29, 2024
1 parent 3a09729 commit 5331b02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 1.77.0 (2024-12-29)

- Add switch to toggle the state of CCU programs

# Version 1.76.1 (2024-12-27)

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion custom_components/homematicip_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"manufacturerURL": "http://www.homematic.com"
}
],
"version": "1.76.1",
"version": "1.77.0",
"zeroconf": []
}
12 changes: 6 additions & 6 deletions custom_components/homematicip_local/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def async_add_hub_switch(data_points: tuple[SysvarDpSwitch | ProgramDpSwitch, ..
]:
async_add_entities(sysvar_entities)

# if program_entities := [
# HaHomematicProgramSwitch(control_unit=control_unit, data_point=data_point)
# for data_point in data_points
# if isinstance(data_point, ProgramDpSwitch)
# ]:
# async_add_entities(program_entities)
if program_entities := [
HaHomematicProgramSwitch(control_unit=control_unit, data_point=data_point)
for data_point in data_points
if isinstance(data_point, ProgramDpSwitch)
]:
async_add_entities(program_entities)

entry.async_on_unload(
func=async_dispatcher_connect(
Expand Down

0 comments on commit 5331b02

Please sign in to comment.