mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Bump pyatmo to 4.2.3 (#50801)
* Bump pyatmo to 4.2.3 * Fix typo and update test fixture
This commit is contained in:
parent
a2363f0243
commit
3ed416ed4c
@ -578,9 +578,7 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
|
|||||||
schedule_id = sid
|
schedule_id = sid
|
||||||
|
|
||||||
if not schedule_id:
|
if not schedule_id:
|
||||||
_LOGGER.error(
|
_LOGGER.error("%s is not a valid schedule", kwargs.get(ATTR_SCHEDULE_NAME))
|
||||||
"%s is not a invalid schedule", kwargs.get(ATTR_SCHEDULE_NAME)
|
|
||||||
)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
self._data.switch_home_schedule(home_id=self._home_id, schedule_id=schedule_id)
|
self._data.switch_home_schedule(home_id=self._home_id, schedule_id=schedule_id)
|
||||||
|
@ -2,13 +2,27 @@
|
|||||||
"domain": "netatmo",
|
"domain": "netatmo",
|
||||||
"name": "Netatmo",
|
"name": "Netatmo",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/netatmo",
|
"documentation": "https://www.home-assistant.io/integrations/netatmo",
|
||||||
"requirements": ["pyatmo==4.2.2"],
|
"requirements": [
|
||||||
"after_dependencies": ["cloud", "media_source"],
|
"pyatmo==4.2.3"
|
||||||
"dependencies": ["webhook"],
|
],
|
||||||
"codeowners": ["@cgtobi"],
|
"after_dependencies": [
|
||||||
|
"cloud",
|
||||||
|
"media_source"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
"webhook"
|
||||||
|
],
|
||||||
|
"codeowners": [
|
||||||
|
"@cgtobi"
|
||||||
|
],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"homekit": {
|
"homekit": {
|
||||||
"models": ["Healty Home Coach", "Netatmo Relay", "Presence", "Welcome"]
|
"models": [
|
||||||
|
"Healty Home Coach",
|
||||||
|
"Netatmo Relay",
|
||||||
|
"Presence",
|
||||||
|
"Welcome"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
}
|
}
|
@ -1295,7 +1295,7 @@ pyarlo==0.2.4
|
|||||||
pyatag==0.3.5.3
|
pyatag==0.3.5.3
|
||||||
|
|
||||||
# homeassistant.components.netatmo
|
# homeassistant.components.netatmo
|
||||||
pyatmo==4.2.2
|
pyatmo==4.2.3
|
||||||
|
|
||||||
# homeassistant.components.atome
|
# homeassistant.components.atome
|
||||||
pyatome==0.1.1
|
pyatome==0.1.1
|
||||||
|
@ -720,7 +720,7 @@ pyarlo==0.2.4
|
|||||||
pyatag==0.3.5.3
|
pyatag==0.3.5.3
|
||||||
|
|
||||||
# homeassistant.components.netatmo
|
# homeassistant.components.netatmo
|
||||||
pyatmo==4.2.2
|
pyatmo==4.2.3
|
||||||
|
|
||||||
# homeassistant.components.apple_tv
|
# homeassistant.components.apple_tv
|
||||||
pyatv==0.7.7
|
pyatv==0.7.7
|
||||||
|
@ -432,7 +432,7 @@ async def test_service_schedule_thermostats(hass, climate_entry, caplog):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
mock_switch_home_schedule.assert_not_called()
|
mock_switch_home_schedule.assert_not_called()
|
||||||
|
|
||||||
assert "summer is not a invalid schedule" in caplog.text
|
assert "summer is not a valid schedule" in caplog.text
|
||||||
|
|
||||||
|
|
||||||
async def test_service_preset_mode_already_boost_valves(hass, climate_entry):
|
async def test_service_preset_mode_already_boost_valves(hass, climate_entry):
|
||||||
|
167
tests/fixtures/netatmo/homesdata.json
vendored
167
tests/fixtures/netatmo/homesdata.json
vendored
@ -89,7 +89,7 @@
|
|||||||
"room_id": "3688132631"
|
"room_id": "3688132631"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"therm_schedules": [
|
"schedules": [
|
||||||
{
|
{
|
||||||
"zones": [
|
"zones": [
|
||||||
{
|
{
|
||||||
@ -398,171 +398,6 @@
|
|||||||
"url": "https://netatmocameraimage.blob.core.windows.net/production/d74fad765b9100ef480720a9a4a95c2d1730fb69ecdf2bb8b72039d2c69928b029d67fc40cb2d74b808a89f8"
|
"url": "https://netatmocameraimage.blob.core.windows.net/production/d74fad765b9100ef480720a9a4a95c2d1730fb69ecdf2bb8b72039d2c69928b029d67fc40cb2d74b808a89f8"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"schedules": [
|
|
||||||
{
|
|
||||||
"zones": [
|
|
||||||
{
|
|
||||||
"type": 0,
|
|
||||||
"name": "Komfort",
|
|
||||||
"rooms_temp": [
|
|
||||||
{
|
|
||||||
"temp": 21,
|
|
||||||
"room_id": "2746182631"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id": 0,
|
|
||||||
"rooms": [
|
|
||||||
{
|
|
||||||
"id": "2746182631",
|
|
||||||
"therm_setpoint_temperature": 21
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": 1,
|
|
||||||
"name": "Nacht",
|
|
||||||
"rooms_temp": [
|
|
||||||
{
|
|
||||||
"temp": 17,
|
|
||||||
"room_id": "2746182631"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id": 1,
|
|
||||||
"rooms": [
|
|
||||||
{
|
|
||||||
"id": "2746182631",
|
|
||||||
"therm_setpoint_temperature": 17
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": 5,
|
|
||||||
"name": "Eco",
|
|
||||||
"rooms_temp": [
|
|
||||||
{
|
|
||||||
"temp": 17,
|
|
||||||
"room_id": "2746182631"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id": 4,
|
|
||||||
"rooms": [
|
|
||||||
{
|
|
||||||
"id": "2746182631",
|
|
||||||
"therm_setpoint_temperature": 17
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"timetable": [
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 360
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 4,
|
|
||||||
"m_offset": 420
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 960
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 1410
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 1800
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 4,
|
|
||||||
"m_offset": 1860
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 2400
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 2850
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 3240
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 4,
|
|
||||||
"m_offset": 3300
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 3840
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 4290
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 4680
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 4,
|
|
||||||
"m_offset": 4740
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 5280
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 5730
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 6120
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 4,
|
|
||||||
"m_offset": 6180
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 6720
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 7170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 7620
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 8610
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 0,
|
|
||||||
"m_offset": 9060
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zone_id": 1,
|
|
||||||
"m_offset": 10050
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"hg_temp": 7,
|
|
||||||
"away_temp": 14,
|
|
||||||
"name": "Default",
|
|
||||||
"id": "591b54a2764ff4d50d8b5795",
|
|
||||||
"selected": true,
|
|
||||||
"type": "therm"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"therm_mode": "schedule"
|
"therm_mode": "schedule"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user