openpgp4fpr:1B4157126E7F3DE0CA170EE9067CB3512E04DF53
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
| blueprint: | |
| name: ZHA - Linkind 1-key Remote Control | |
| description: | | |
| "Control your light(s) with Linkind 1-key Remote Control | |
| Select the Linkind remote and your lights. | |
| You can toggle the lights On/Off, or hold the button to dim the lights." | |
| domain: automation | |
| input: | |
| remote: |
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
| # filter_hash() takes two Hash objects and applies the second as a filter | |
| # on the first one. | |
| # | |
| # Usage: | |
| # filter_hash(hash, filter) | |
| # | |
| # Arguments: | |
| # hash: Required Hash. The Hash to be filtered | |
| # filter: Required Hash. The filter to apply against hash | |
| # |
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
| require_relative 'fb_helpers.rb' | |
| describe FB::Helpers do | |
| context 'filter_hash' do | |
| it 'returns a passing hash unchanged' do | |
| hash = { | |
| 'fb_sysctl' => { | |
| 'kernel.core_uses_pid' => 0, | |
| }, | |
| } |