Skip to content

Commit

Permalink
V2025.01.06
Browse files Browse the repository at this point in the history
Correct entities card yaml output on updating the program configuration
  • Loading branch information
petergridge authored Jan 18, 2025
1 parent 2a76b84 commit cf6c66d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/irrigationprogram/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/petergridge/irrigation-v5/issues",
"requirements": [],
"version": "V2025.01.04"
"version": "V2025.01.06"
}
6 changes: 4 additions & 2 deletions custom_components/irrigationprogram/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def __init__(

self._localtimezone = ZoneInfo(self._hass.config.time_zone)

if self._program.card_yaml:
self.generate_card()

def generate_card (self):
"""Create card config yaml."""
Expand Down Expand Up @@ -405,6 +403,10 @@ def hass_shutdown(event):

await super().async_added_to_hass()

# generate the entities card yaml to replicate the custom card
if self._program.card_yaml:
self.generate_card()

@callback
def set_up_entity_monitoring(self):
"""Set up to monitor these entities to change the next run data."""
Expand Down

0 comments on commit cf6c66d

Please sign in to comment.