Remove sun platform

It isn't in use yet
This commit is contained in:
Edward Firmo
2024-12-20 20:51:52 +01:00
parent e0a5ea1cc8
commit e1b8469aa5
2 changed files with 0 additions and 46 deletions

View File

@@ -13,23 +13,6 @@
---
api:
id: api_server
actions:
- action: set_float
variables:
component: string
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);
} else if (component == "longitude" && val >= -180 && val <= 180) {
sun_entity->set_longitude(val);
}
}
script:
- id: !extend button_action
@@ -54,5 +37,4 @@ script:
{"component", component},
{"event", event},
});
...