mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 03:04:27 +05:00
fix: set device_class and unit_of_measurement for number.pid_dt
This commit is contained in:
@@ -674,6 +674,8 @@ public:
|
||||
doc[FPSTR(HA_UNIQUE_ID)] = this->getObjectId("pid_dt");
|
||||
doc[FPSTR(HA_OBJECT_ID)] = this->getObjectId("pid_dt");
|
||||
doc[FPSTR(HA_ENTITY_CATEGORY)] = F("config");
|
||||
doc[FPSTR(HA_DEVICE_CLASS)] = F("duration");
|
||||
doc[FPSTR(HA_UNIT_OF_MEASUREMENT)] = F("s");
|
||||
doc[FPSTR(HA_NAME)] = F("PID DT");
|
||||
doc[FPSTR(HA_ICON)] = F("mdi:timer-cog-outline");
|
||||
doc[FPSTR(HA_STATE_TOPIC)] = this->getDeviceTopic("settings");
|
||||
|
||||
Reference in New Issue
Block a user