From 3bc08e5222609d36f3a3fac8e91969d8fce753aa Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sat, 1 Jun 2019 13:22:28 +0200 Subject: [PATCH] Fix remote_receiver binary_sensor (#592) Fixes https://github.com/esphome/issues/issues/369 --- esphome/components/remote_base/remote_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/remote_base/remote_base.h b/esphome/components/remote_base/remote_base.h index d8eb1be356..6035e2fd57 100644 --- a/esphome/components/remote_base/remote_base.h +++ b/esphome/components/remote_base/remote_base.h @@ -293,7 +293,7 @@ template 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: