Skip to content

Commit

Permalink
test-and-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Jan 10, 2025
1 parent b0e7bb9 commit bd28f7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-multi-mp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ env:
REGISTRY_IMAGE: ghcr.io/${{ github.repository_owner }}/hass-addon-sunsynk-multi

jobs:
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'CI failed'
information:
name: Gather add-on information
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
architectures: ${{ steps.information.outputs.architectures }}
build: ${{ steps.information.outputs.build }}
Expand Down
3 changes: 2 additions & 1 deletion src/tests/ha_addon_sunsynk_multi/test_sensor_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ async def test_build_callback_schedule(ist: AInverter) -> None:
dds.side_effect = [read_s, report_s]

ist.write_queue = {}
ist.index = 0

with (
patch("ha_addon_sunsynk_multi.sensor_callback.defaultdict", dds),
):
mycb = build_callback_schedule(ist=ist, idx=0)
mycb = build_callback_schedule(ist)
if not iscoroutinefunction(mycb.callback):
assert False, "Callback is not a coroutine"

Expand Down

0 comments on commit bd28f7f

Please sign in to comment.