pw_on, slncid to loop

This commit is contained in:
Gábor Poczkodi 2024-10-18 16:46:47 +02:00
parent c67ee68404
commit d35d9e9adf

View file

@ -183,10 +183,12 @@ void KT0803Component::dump_config() {
}
void KT0803Component::update() {
/*
if (this->read_reg_(0x0F)) {
this->publish_pw_ok();
this->publish_slncid();
}
*/
/*
for (size_t addr = 0; addr < 0x2F; addr++) {
uint8_t c;
@ -197,7 +199,12 @@ void KT0803Component::update() {
*/
}
void KT0803Component::loop() {}
void KT0803Component::loop() {
if (this->read_reg_(0x0F)) {
this->publish_pw_ok();
this->publish_slncid();
}
}
// config