made height_pct sensor independent from other sensors

This commit is contained in:
Rocka84
2024-01-09 01:16:04 +01:00
parent 12444cb537
commit 113a6c3e11
2 changed files with 17 additions and 9 deletions

View File

@@ -20,6 +20,9 @@ namespace esphome {
class JiecangDeskController : public PollingComponent, public sensor::Sensor, public uart::UARTDevice {
private:
float current_height = 0;
float limit_min = 0;
float limit_max = 0;
float physical_min = 0;
float physical_max = 0;