Skip to content

Commit

Permalink
Bump pytest-homeassistant-custom-component
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBie1221 committed Jan 4, 2025
1 parent 1c99dd8 commit c4904c3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: "3.13"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
python-version: "3.13"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ aionefit-updated==0.15
pylint==3.3.2
pytest
pytest-cov
pytest-homeassistant-custom-component==0.13.192
pytest-homeassistant-custom-component==0.13.200
10 changes: 5 additions & 5 deletions tests/test_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from homeassistant.components.climate.const import (
ATTR_CURRENT_TEMPERATURE,
ATTR_PRESET_MODE,
HVAC_MODE_HEAT,
HVACMode,
)
from homeassistant.const import ATTR_ENTITY_ID, ATTR_TEMPERATURE
from homeassistant.core import HomeAssistant
Expand All @@ -23,7 +23,7 @@ async def test_climate_device(hass: HomeAssistant, nefit_wrapper):

thermostat = hass.states.get("climate.nefit")
assert thermostat
assert thermostat.state == HVAC_MODE_HEAT
assert thermostat.state == HVACMode.HEAT
assert thermostat.attributes[ATTR_PRESET_MODE] == "Clock"
assert thermostat.attributes[ATTR_TEMPERATURE] == 20.0
assert thermostat.attributes[ATTR_CURRENT_TEMPERATURE] == 17.50
Expand Down Expand Up @@ -54,7 +54,7 @@ async def test_climate_set_mode(hass: HomeAssistant, nefit_wrapper):

thermostat = hass.states.get("climate.nefit")
assert thermostat
assert thermostat.state == HVAC_MODE_HEAT
assert thermostat.state == HVACMode.HEAT
assert thermostat.attributes[ATTR_PRESET_MODE] == "Clock"
assert thermostat.attributes["boiler_indicator"] == "CH"
assert thermostat.attributes["last_update"] == "2021-12-28T21:43:25+00:00 Tu"
Expand All @@ -72,7 +72,7 @@ async def test_climate_set_mode(hass: HomeAssistant, nefit_wrapper):

thermostat = hass.states.get("climate.nefit")
assert thermostat
assert thermostat.state == HVAC_MODE_HEAT
assert thermostat.state == HVACMode.HEAT
assert thermostat.attributes[ATTR_PRESET_MODE] == "Manual"

await hass.services.async_call(
Expand All @@ -88,5 +88,5 @@ async def test_climate_set_mode(hass: HomeAssistant, nefit_wrapper):

thermostat = hass.states.get("climate.nefit")
assert thermostat
assert thermostat.state == HVAC_MODE_HEAT
assert thermostat.state == HVACMode.HEAT
assert thermostat.attributes[ATTR_PRESET_MODE] == "Clock"

0 comments on commit c4904c3

Please sign in to comment.