mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
sensor:
|
||||
- platform: debug
|
||||
free:
|
||||
name: "Heap Free"
|
||||
id: heap_free_sensor
|
||||
entity_category: diagnostic
|
||||
loop_time:
|
||||
name: "Loop Time"
|
||||
id: loop_time_sensor
|
||||
entity_category: diagnostic
|
||||
@@ -8,6 +8,7 @@ sensor:
|
||||
|
||||
- platform: copy # Reports the WiFi signal strength in %
|
||||
source_id: local_wifi_signal_db
|
||||
id: local_wifi_signal_percent
|
||||
name: "WiFi Signal Strength"
|
||||
filters:
|
||||
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
|
||||
|
||||
Reference in New Issue
Block a user