mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 12:24:05 +00:00
Fix remote_receiver binary_sensor (#592)
Fixes https://github.com/esphome/issues/issues/369
This commit is contained in:
parent
672f8d1719
commit
3bc08e5222
@ -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…
x
Reference in New Issue
Block a user