Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm committed Dec 26, 2024
1 parent 4f5b999 commit 76cce78
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pytest-homeassistant-custom-component

![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2024.12.5&labelColor=blue)
![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.1.0b2&labelColor=blue)

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/MatthewFlamm/pytest-homeassistant-custom-component)

Expand Down
2 changes: 1 addition & 1 deletion ha_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.12.5
2025.1.0b2
8 changes: 4 additions & 4 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file is originally from homeassistant/core and modified by pytest-homeassistant-custom-component.
astroid==3.3.5
mypy-dev==1.14.0a3
astroid==3.3.6
mypy-dev==1.14.0a7
pre-commit==4.0.0
pylint==3.3.1
pylint==3.3.2
types-aiofiles==24.1.0.20240626
types-atomicwrites==1.4.5.1
types-croniter==4.0.0.20241030
Expand All @@ -12,7 +12,7 @@ types-chardet==0.1.5
types-decorator==5.1.8.20240310
types-paho-mqtt==1.6.0.20240321
types-pillow==10.2.0.20240822
types-protobuf==5.28.3.20241030
types-protobuf==5.29.1.20241207
types-psutil==6.1.0.20241102
types-python-dateutil==2.9.0.20241003
types-python-slugify==8.0.2.20240310
Expand Down
10 changes: 5 additions & 5 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage==7.6.8
freezegun==1.5.1
license-expression==30.4.0
mock-open==1.4.0
pydantic==1.10.19
pydantic==2.10.4
pylint-per-file-ignores==1.3.2
pipdeptree==2.23.4
pytest-asyncio==0.24.0
Expand All @@ -26,15 +26,15 @@ pytest-timeout==2.3.1
pytest-unordered==0.6.1
pytest-picked==0.5.0
pytest-xdist==3.6.1
pytest==8.3.3
pytest==8.3.4
requests-mock==1.12.1
respx==0.21.1
syrupy==4.7.2
syrupy==4.8.0
tqdm==4.66.5
homeassistant==2024.12.5
homeassistant==2025.1.0b2
SQLAlchemy==2.0.36

paho-mqtt==1.6.1

numpy==2.1.3
numpy==2.2.0

2 changes: 1 addition & 1 deletion src/pytest_homeassistant_custom_component/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def async_fire_time_changed(
def _async_fire_time_changed(
hass: HomeAssistant, utc_datetime: datetime | None, fire_all: bool
) -> None:
timestamp = dt_util.utc_to_timestamp(utc_datetime)
timestamp = utc_datetime.timestamp()
for task in list(get_scheduled_timer_handles(hass.loop)):
if not isinstance(task, asyncio.TimerHandle):
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,6 @@ def get_schema_module_path(schema_version_postfix: str) -> str:
return f"...components.recorder.db_schema_{schema_version_postfix}"


@dataclass(slots=True)
class MockMigrationTask(migration.MigrationTask):
"""Mock migration task which does nothing."""

def run(self, instance: Recorder) -> None:
"""Run migration task."""


@contextmanager
def old_db_schema(schema_version_postfix: str) -> Iterator[None]:
"""Fixture to initialize the db with the old schema."""
Expand All @@ -457,7 +449,6 @@ def old_db_schema(schema_version_postfix: str) -> Iterator[None]:
patch.object(core, "States", old_db_schema.States),
patch.object(core, "Events", old_db_schema.Events),
patch.object(core, "StateAttributes", old_db_schema.StateAttributes),
patch.object(migration.EntityIDMigration, "task", MockMigrationTask),
patch(
CREATE_ENGINE_TARGET,
new=partial(
Expand Down
6 changes: 3 additions & 3 deletions src/pytest_homeassistant_custom_component/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
This file is originally from homeassistant/core and modified by pytest-homeassistant-custom-component.
"""
from typing import TYPE_CHECKING, Final
MAJOR_VERSION: Final = 2024
MINOR_VERSION: Final = 12
PATCH_VERSION: Final = "5"
MAJOR_VERSION: Final = 2025
MINOR_VERSION: Final = 1
PATCH_VERSION: Final = "0b2"
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
2 changes: 1 addition & 1 deletion src/pytest_homeassistant_custom_component/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ async def _async_call(
return_response: bool = False,
) -> ServiceResponse:
calls.append(
ServiceCall(domain, service, service_data, context, return_response)
ServiceCall(hass, domain, service, service_data, context, return_response)
)
try:
return await _original_async_call(
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.195
0.13.196

0 comments on commit 76cce78

Please sign in to comment.