feat: add native Symcon room climate, schedules, weather and presence
This commit is contained in:
1 parent
510aece983
commit
18e73194e0
37 files changed
+2861
-2132
No files matched your search
@@ -35,6 +35,19 @@ def test_room_start_view() -> None:
|
||||
assert room["start_view"]["radius"] == 4.0
|
||||
|
||||
|
||||
def test_native_symcon_room_links_and_weather_survive_validation() -> None:
|
||||
hvac = {
|
||||
"status": "sensor.12",
|
||||
"supply_vsr": "sensor.13",
|
||||
"reheat": "switch.14",
|
||||
"schedules": ["schedule.15", "schedule.16"],
|
||||
}
|
||||
room = ROOM_SCHEMA({**ROOM, "floor_heating": "sensor.11", "hvac": hvac})
|
||||
assert room["hvac"] == hvac
|
||||
weather = {"temperature": "climate.20", "wind_speed": "sensor.21", "snow": None}
|
||||
assert SETTINGS_SCHEMA({**SETTINGS, "weather_variables": weather})["weather_variables"] == weather
|
||||
|
||||
|
||||
def test_map_defaults_and_limits() -> None:
|
||||
result = MAP_SCHEMA({"on": True, "lat": 50.1, "lon": 8.6})
|
||||
assert (result["zoom"], result["opacity"], result["url"]) == (18, 0.5, None)
|
||||
|
||||
Reference in new issue
Block a user