Register light conditions (#570)

This commit is contained in:
Otto Winter
2019-05-30 13:12:12 +02:00
committed by GitHub
parent 8dd971b25e
commit 1ce257c721
4 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ template<typename... Ts> class LightIsOnCondition : public Condition<Ts...> {
protected:
LightState *state_;
};
template<typename... Ts> class LightIsOffCondition : public Condition<LightState, Ts...> {
template<typename... Ts> class LightIsOffCondition : public Condition<Ts...> {
public:
explicit LightIsOffCondition(LightState *state) : state_(state) {}
bool check(Ts... x) override { return !this->state_->current_values.is_on(); }