From 31c3e4aba92ed4562765e198a6c91e15da93ada1 Mon Sep 17 00:00:00 2001 From: HB Date: Thu, 1 Oct 2020 05:43:57 +0200 Subject: [PATCH] Added binary sensors to dump_config in sensor hub --- custom_components/empty_sensor_hub/empty_sensor_hub.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/empty_sensor_hub/empty_sensor_hub.cpp b/custom_components/empty_sensor_hub/empty_sensor_hub.cpp index be02f01..c7951d0 100644 --- a/custom_components/empty_sensor_hub/empty_sensor_hub.cpp +++ b/custom_components/empty_sensor_hub/empty_sensor_hub.cpp @@ -18,6 +18,10 @@ void EmptySensorHub::dump_config(){ for(auto *text_sensor : this->text_sensors_){ LOG_TEXT_SENSOR(" ", "Text sensor", text_sensor); } + + for(auto *binary_sensor : this->binary_sensors_){ + LOG_BINARY_SENSOR(" ", "Binary sensor", binary_sensor); + } } } //namespace empty_sensor_hub