mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add own entities read from ems-bus with free factor
This commit is contained in:
@@ -539,6 +539,10 @@ bool Command::device_has_commands(const uint8_t device_type) {
|
||||
return EMSESP::webSchedulerService.has_commands();
|
||||
}
|
||||
|
||||
if (device_type == EMSdevice::DeviceType::CUSTOM) {
|
||||
return (EMSESP::webEntityService.count_entities() != 0);
|
||||
}
|
||||
|
||||
if (device_type == EMSdevice::DeviceType::DALLASSENSOR) {
|
||||
return (EMSESP::dallassensor_.have_sensors());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user