Fix some binary_sensor not having an initial state (#819)

Fixes https://github.com/home-assistant/home-assistant/issues/28384
This commit is contained in:
Otto Winter committed 2019-10-31 23:46:10 +01:00
1 parent 469c0db981
commit 70faeb2fa8
7 files changed
+13 -7

No files matched your search

@@ -30,7 +30,7 @@ void StatusBinarySensor::loop() {
this->publish_state(status);
}
void StatusBinarySensor::setup() { this->publish_state(false); }
void StatusBinarySensor::setup() { this->publish_initial_state(false); }
void StatusBinarySensor::dump_config() { LOG_BINARY_SENSOR("", "Status Binary Sensor", this); }
} // namespace status