mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
use initial off binary sensor
This commit is contained in:
parent
dea297c8d7
commit
dcd3b1fa30
@ -6,7 +6,7 @@
|
|||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace matrix_keypad {
|
namespace matrix_keypad {
|
||||||
|
|
||||||
class MatrixKeypadBinarySensor : public MatrixKeypadListener, public binary_sensor::BinarySensor {
|
class MatrixKeypadBinarySensor : public MatrixKeypadListener, public binary_sensor::BinarySensorInitiallyOff {
|
||||||
public:
|
public:
|
||||||
MatrixKeypadBinarySensor(uint8_t key) : has_key_(true), key_(key){};
|
MatrixKeypadBinarySensor(uint8_t key) : has_key_(true), key_(key){};
|
||||||
MatrixKeypadBinarySensor(const char *key) : has_key_(true), key_((uint8_t) key[0]){};
|
MatrixKeypadBinarySensor(const char *key) : has_key_(true), key_((uint8_t) key[0]){};
|
||||||
|
Loading…
Reference in New Issue
Block a user