Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Nov 11, 2024
1 parent 15dc185 commit 05c8512
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:

- name: Install Python modules
run: |
pip install --constraint=.github/workflows/constraints.txt pre-commit black
# flake8 isort
pip install --constraint=.github/workflows/constraints.txt pre-commit
- name: "Install requirements"
run: python3 -m pip install -r requirements.txt
Expand Down
7 changes: 6 additions & 1 deletion custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: BermudaConfigEntry):
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))

# Run it once so it will schedule itself in the future.
await coordinator.purge_redactions(hass)
entry.async_on_unload(coordinator.stop_purging)

return True

Expand Down Expand Up @@ -98,3 +98,8 @@ async def async_unload_entry(hass: HomeAssistant, entry: BermudaConfigEntry) ->
async def async_reload_entry(hass: HomeAssistant, entry: BermudaConfigEntry) -> None:
"""Reload config entry."""
await hass.config_entries.async_reload(entry.entry_id)


async def remove_entry(hass: HomeAssistant, entry: BermudaConfigEntry) -> None:
"""Remove the entry."""
await entry.runtime_data.coordinator.stop_purging()
6 changes: 0 additions & 6 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
-r requirements.txt
pytest-asyncio
pytest-homeassistant-custom-component
#==0.13.50
pre-commit
isort
black==24.10.0
# AJG 2024-04-07: github not completing tests due to this.
pyudev
pyserial-asyncio==0.6
pyserial==3.5

0 comments on commit 05c8512

Please sign in to comment.