From 986b9d258ad2ff09bdcaee9b5e44fbf4f9b0de0c Mon Sep 17 00:00:00 2001 From: j0ta29 Date: Wed, 3 Jan 2024 22:02:59 +0000 Subject: [PATCH] fix for missing types at esp32 platform --- esphome/components/optolink/number/optolink_number.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/optolink/number/optolink_number.cpp b/esphome/components/optolink/number/optolink_number.cpp index 3fcd847d14..5c3fc87fff 100644 --- a/esphome/components/optolink/number/optolink_number.cpp +++ b/esphome/components/optolink/number/optolink_number.cpp @@ -23,7 +23,7 @@ void OptolinkNumber::datapoint_value_changed(uint8_t state) { if (traits.get_min_value() >= 0) { publish_state(state); } else { - publish_state((sint8_t) state); + publish_state((int8_t) state); } }; @@ -31,7 +31,7 @@ void OptolinkNumber::datapoint_value_changed(uint16_t state) { if (traits.get_min_value() >= 0) { publish_state(state); } else { - publish_state((sint16_t) state); + publish_state((int16_t) state); } }; @@ -39,7 +39,7 @@ void OptolinkNumber::datapoint_value_changed(uint32_t state) { if (traits.get_min_value() >= 0) { publish_state(state); } else { - publish_state((sint32_t) state); + publish_state((int32_t) state); } };