More CodeRabbitAI suggestions

This commit is contained in:
Edward Firmo
2024-12-19 23:52:21 +01:00
parent e9890c937e
commit 62e4e3d511
5 changed files with 16 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ api:
val: float
then:
- lambda: |-
ESP_LOGD("core_api", "Set float:");
ESP_LOGD("core_api", " Component: %s", component.c_str());
ESP_LOGD("core_api", " Value: %f", val);
if (!isnan(val)) {
if (component == "latitude" && val >= -90 && val <= 90) {
sun_entity->set_latitude(val);