Skip to content

Commit

Permalink
Make 2022.8.0 the minimum version (#2816)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Aug 7, 2022
1 parent 365614c commit 38b065c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
curl -sfSL https://codecov.io/bash | bash -
legacy:
name: With pytest with Home Assistant 2022.4.0
name: With pytest with Home Assistant 2022.8.0
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
name: With Home Assistant
strategy:
matrix:
channel: [stable, beta, dev, "2022.4.0"]
channel: [stable, beta, dev, "2022.8.0"]
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ homeassistant-install-old: ## Install the oldest version of Home Assistant
python3 -m pip --disable-pip-version-check install -U "pip>=8.0.3,<20.3";
python3 -m pip --disable-pip-version-check install -U setuptools wheel;
python3 -m pip --disable-pip-version-check \
install --upgrade git+https://github.com/home-assistant/home-assistant.git@2022.4.0;
install --upgrade git+https://github.com/home-assistant/home-assistant.git@2022.8.0;

homeassistant-update: homeassistant-install ## Alias for 'homeassistant-install'
5 changes: 1 addition & 4 deletions custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from .frontend import async_register_frontend
from .utils.configuration_schema import hacs_config_combined
from .utils.data import HacsData
from .utils.platform_setup import async_setup_entity_platforms
from .utils.queue_manager import QueueManager
from .utils.version import version_left_higher_or_equal_then_right
from .websocket import async_register_websocket_commands
Expand Down Expand Up @@ -169,9 +168,7 @@ async def async_startup():
hacs.log.info("Update entities are only supported when using UI configuration")

else:
await async_setup_entity_platforms(
hacs,
hass,
hass.config_entries.async_setup_platforms(
config_entry,
[Platform.SENSOR, Platform.UPDATE]
if hacs.configuration.experimental
Expand Down
6 changes: 1 addition & 5 deletions custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from .utils.decode import decode_content
from .utils.json import json_loads
from .utils.logger import LOGGER
from .utils.platform_setup import async_setup_entity_platforms
from .utils.queue_manager import QueueManager
from .utils.store import async_load_from_store, async_save_to_store

Expand Down Expand Up @@ -730,10 +729,7 @@ async def async_recreate_entities(self) -> None:
entry=self.configuration.config_entry,
platforms=platforms,
)

await async_setup_entity_platforms(
self, self.hass, self.configuration.config_entry, platforms
)
self.hass.config_entries.async_setup_platforms(self.configuration.config_entry, platforms)

@callback
def async_dispatch(self, signal: HacsDispatchEvent, data: dict | None = None) -> None:
Expand Down
21 changes: 0 additions & 21 deletions custom_components/hacs/utils/platform_setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "HACS",
"zip_release": true,
"hide_default_branch": true,
"homeassistant": "2022.4.0",
"homeassistant": "2022.8.0",
"hacs": "0.19.0",
"filename": "hacs.zip"
}

0 comments on commit 38b065c

Please sign in to comment.