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