update deprecated functions

This commit is contained in:
Florian committed 2026-09-21 20:45:27 +02:00
1 parent 5a35ce3490
commit 2031de292e
1 file changed
+5 -5
+5 -5
View File
@@ -10,7 +10,7 @@ text_sensor:
address: 3000 address: 3000
raw_encode: HEXBYTES raw_encode: HEXBYTES
lambda: |- lambda: |-
uint16_t value = modbus_controller::word_from_hex_str(x, 0); uint16_t value = modbus::helpers::word_from_hex_str(x, 0);
switch (value) { switch (value) {
case 0: return std::string("STB gefallen oder NOT-AUS betätigt"); case 0: return std::string("STB gefallen oder NOT-AUS betätigt");
case 1: return std::string("Kesseltemperaturfühler fehlerhaft"); case 1: return std::string("Kesseltemperaturfühler fehlerhaft");
@@ -455,7 +455,7 @@ text_sensor:
address: 3001 address: 3001
raw_encode: HEXBYTES raw_encode: HEXBYTES
lambda: |- lambda: |-
uint16_t value = modbus_controller::word_from_hex_str(x, 0); uint16_t value = modbus::helpers::word_from_hex_str(x, 0);
switch (value) { switch (value) {
case 0: return std::string("STB gefallen oder NOT-AUS betätigt"); case 0: return std::string("STB gefallen oder NOT-AUS betätigt");
case 1: return std::string("Kesseltemperaturfühler fehlerhaft"); case 1: return std::string("Kesseltemperaturfühler fehlerhaft");
@@ -900,7 +900,7 @@ text_sensor:
address: 3002 address: 3002
raw_encode: HEXBYTES raw_encode: HEXBYTES
lambda: |- lambda: |-
uint16_t value = modbus_controller::word_from_hex_str(x, 0); uint16_t value = modbus::helpers::word_from_hex_str(x, 0);
switch (value) { switch (value) {
case 0: return std::string("STB gefallen oder NOT-AUS betätigt"); case 0: return std::string("STB gefallen oder NOT-AUS betätigt");
case 1: return std::string("Kesseltemperaturfühler fehlerhaft"); case 1: return std::string("Kesseltemperaturfühler fehlerhaft");
@@ -1345,7 +1345,7 @@ text_sensor:
address: 3003 address: 3003
raw_encode: HEXBYTES raw_encode: HEXBYTES
lambda: |- lambda: |-
uint16_t value = modbus_controller::word_from_hex_str(x, 0); uint16_t value = modbus::helpers::word_from_hex_str(x, 0);
switch (value) { switch (value) {
case 0: return std::string("STB gefallen oder NOT-AUS betätigt"); case 0: return std::string("STB gefallen oder NOT-AUS betätigt");
case 1: return std::string("Kesseltemperaturfühler fehlerhaft"); case 1: return std::string("Kesseltemperaturfühler fehlerhaft");
@@ -1790,7 +1790,7 @@ text_sensor:
address: 3004 address: 3004
raw_encode: HEXBYTES raw_encode: HEXBYTES
lambda: |- lambda: |-
uint16_t value = modbus_controller::word_from_hex_str(x, 0); uint16_t value = modbus::helpers::word_from_hex_str(x, 0);
switch (value) { switch (value) {
case 0: return std::string("STB gefallen oder NOT-AUS betätigt"); case 0: return std::string("STB gefallen oder NOT-AUS betätigt");
case 1: return std::string("Kesseltemperaturfühler fehlerhaft"); case 1: return std::string("Kesseltemperaturfühler fehlerhaft");