Skip to content

SensorOptions

SensorOptions #201

Triggered via push January 9, 2025 08:06
Status Failure
Total duration 56s
Artifacts

ci.yml

on: push
Matrix: pytest
Check pylint
30s
Check pylint
Check mypy
30s
Check mypy
Build and publish Python 🐍 distributions 📦 to PyPI
0s
Build and publish Python 🐍 distributions 📦 to PyPI
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 6 warnings
Run tests Python 3.12: src/tests/ha_addon_sunsynk_multi/test_sensor_callback.py#L38
test_build_callback_schedule AssertionError: assert defaultdict(<...nsorRun'>, {}) == {10: SensorRu...irst=False)})} Right contains 2 more items: {10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)})} Full diff: + defaultdict(<class 'ha_addon_sunsynk_multi.sensor_callback.SensorRun'>, {}) - { - 10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - }
Run tests Python 3.12: src/tests/ha_addon_sunsynk_multi/test_sensors.py#L13
test_opt1 AssertionError: assert ['device_type...er', 'serial'] == ['rated_power', 'serial'] At index 0 diff: 'device_type' != 'rated_power' Left contains one more item: 'serial' Full diff: [ + 'device_type', 'rated_power', 'serial', ]
Run tests Python 3.12: src/tests/ha_addon_sunsynk_multi/test_state.py#L29
test_create_entity ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='one', unit='W', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.12: src/tests/ha_addon_sunsynk_multi/test_state.py#L55
test_create_entity2 ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='the energy', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.12
Process completed with exit code 1.
Run tests Python 3.11: src/tests/ha_addon_sunsynk_multi/test_sensor_callback.py#L38
test_build_callback_schedule AssertionError: assert defaultdict(<...nsorRun'>, {}) == {10: SensorRu...irst=False)})} Right contains 2 more items: {10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)})} Full diff: + defaultdict(<class 'ha_addon_sunsynk_multi.sensor_callback.SensorRun'>, {}) - { - 10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - }
Run tests Python 3.11: src/tests/ha_addon_sunsynk_multi/test_sensors.py#L13
test_opt1 AssertionError: assert ['device_type...er', 'serial'] == ['rated_power', 'serial'] At index 0 diff: 'device_type' != 'rated_power' Left contains one more item: 'serial' Full diff: [ + 'device_type', 'rated_power', 'serial', ]
Run tests Python 3.11: src/tests/ha_addon_sunsynk_multi/test_state.py#L29
test_create_entity ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='one', unit='W', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.11: src/tests/ha_addon_sunsynk_multi/test_state.py#L55
test_create_entity2 ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='the energy', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.11
Process completed with exit code 1.
Run tests Python 3.10: src/tests/ha_addon_sunsynk_multi/test_sensor_callback.py#L38
test_build_callback_schedule AssertionError: assert defaultdict(<...nsorRun'>, {}) == {10: SensorRu...irst=False)})} Right contains 2 more items: {10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)})} Full diff: + defaultdict(<class 'ha_addon_sunsynk_multi.sensor_callback.SensorRun'>, {}) - { - 10: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(1,), name='test', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=10, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - 20: SensorRun(next_run=0, sensors={SensorOption(sensor=Sensor(address=(2,), name='test2', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='', read_every=1, report_every=20, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False)}), - }
Run tests Python 3.10: src/tests/ha_addon_sunsynk_multi/test_sensors.py#L13
test_opt1 AssertionError: assert ['device_type...er', 'serial'] == ['rated_power', 'serial'] At index 0 diff: 'device_type' != 'rated_power' Left contains one more item: 'serial' Full diff: [ + 'device_type', 'rated_power', 'serial', ]
Run tests Python 3.10: src/tests/ha_addon_sunsynk_multi/test_state.py#L29
test_create_entity ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='one', unit='W', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.10: src/tests/ha_addon_sunsynk_multi/test_state.py#L55
test_create_entity2 ValueError: Do not create hidden entities! ASensor(opt=SensorOption(sensor=Sensor(address=(1,), name='the energy', unit='kWh', factor=1, bitmask=0), schedule=Schedule(key='no_unit', read_every=1, report_every=1, change_by=0, change_percent=0, change_any=False), visible=False, affects=set(), first=False), entity=None, _last=None, retain=False)
Run tests Python 3.10
Process completed with exit code 1.
ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run tests Python 3.12
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run tests Python 3.11
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check mypy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run tests Python 3.10
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check pylint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636