This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1673221013583' | |
alias: Home Assistant Notifikacia Senzory maju problem | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: | |
- sensor.senzory_s_problemom_pocet | |
condition: | |
- condition: template | |
value_template: '{{ trigger.from_state.state != ''unavailable'' }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Changes the renewal link for a particular membership to purchase a new one | |
// Old membership will be deleted upon purchase if expired | |
/** | |
* Changes the renewal URL for the trial membership | |
* | |
* @param string $url the renewal URL | |
* @param \WC_Memberships_User_Membership $membership the user membership | |
* @return string $url the updated renewal URL |