mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Fix remote_receiver binary_sensor (#592)
Fixes https://github.com/esphome/issues/issues/369
This commit is contained in:
parent
075fcb77a8
commit
f3fc9e4142
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ template<typename T, typename D> class RemoteReceiverBinarySensor : public Remot
|
|||
bool matches(RemoteReceiveData src) override {
|
||||
auto proto = T();
|
||||
auto res = proto.decode(src);
|
||||
return res.has_value();
|
||||
return res.has_value() && *res == this->data_;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue