This file contains hidden or 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
| grep -l yhvobwawyd * -R | xargs -i sh -c "echo {} && sed -i '1 s/^.*$/<?php/' \"{}\";" |
This file contains hidden or 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 | |
| /** | |
| * Convert under_score type array's keys to camelCase type array's keys | |
| * @param array $array array to convert | |
| * @return array camelCase array | |
| */ | |
| public function camelCaseKeys($array) { | |
| $camelCaseArray = array(); | |
| foreach ($array as $key => $val) { |
This file contains hidden or 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
| # fork from https://community.home-assistant.io/t/daily-thermostat-schedule/395834, | |
| # which did not work for some of my thermostats, as the switch heat/cool never matched any value | |
| blueprint: | |
| name: Heating Daily Schedule | |
| description: Set the target TRV temperature based on its mode. | |
| domain: automation | |
| input: | |
| climate_id: |