Add Tado weather support (#44807)

This commit is contained in:
Álvaro Fernández Rojas 2021-03-10 21:31:37 +01:00 committed by GitHub
parent 10535018cc
commit ff09643b33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 213 additions and 3 deletions

View file

@ -21,6 +21,21 @@ async def test_air_con_create_sensors(hass):
assert state.state == "60.9"
async def test_home_create_sensors(hass):
"""Test creation of home sensors."""
await async_init_integration(hass)
state = hass.states.get("sensor.home_name_outdoor_temperature")
assert state.state == "7.46"
state = hass.states.get("sensor.home_name_solar_percentage")
assert state.state == "2.1"
state = hass.states.get("sensor.home_name_weather_condition")
assert state.state == "fog"
async def test_heater_create_sensors(hass):
"""Test creation of heater sensors."""