mirror of
https://github.com/ElVit/esphome_components.git
synced 2026-10-17 20:03:18 +02:00
Update panasonic_heatpump_binary_sensor.cpp
This commit is contained in:
@@ -15,6 +15,11 @@ void PanasonicHeatpumpBinarySensor::publish_new_state(const std::vector<uint8_t>
|
||||
|
||||
bool new_state;
|
||||
switch (this->id_) {
|
||||
case BinarySensorIds::CONF_UART_CLIENT_TIMED_OUT:
|
||||
new_state = this->parent()->get_uart_client_timeout_exceeded();
|
||||
if (this->has_state() && this->state == new_state)
|
||||
return;
|
||||
break;
|
||||
case BinarySensorIds::CONF_TOP0:
|
||||
new_state = PanasonicDecode::getBinaryState(PanasonicDecode::getBit7and8(data[4]));
|
||||
if (this->has_state() && this->state == new_state)
|
||||
|
||||
Reference in New Issue
Block a user