Add config to ZHA to allow disabling polling of mains powered devices when the network is started #211305
ci.yaml
on: pull_request
Collect information & changes data
17s
Matrix: Prepare dependencies
Check hassfest
40s
Check all requirements
26s
Check mypy
27s
Audit licenses
0s
Check pylint
32s
Check pylint on tests
36s
Check ruff-format
15s
Check ruff
16s
Check other linters
24s
Matrix: lint-hadolint
Matrix: pytest-full
Matrix: pytest-mariadb
Matrix: pytest-partial
Matrix: pytest-postgres
Upload test coverage to Codecov (partial suite)
0s
Upload test coverage to Codecov (full suite)
0s
Annotations
6 errors
Run tests Python 3.12 (zha):
tests/components/zha/test_websocket_api.py#L260
test_get_zha_config
AssertionError: assert {'data': {'zh...lean'}, ...]}} == {'data': {'zh...lean'}, ...]}}
Differing items:
{'data': {'zha_options': {'always_prefer_xy_color_mode': True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 0, ...}}} != {'data': {'zha_options': {'always_prefer_xy_color_mode': True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 0, ...}}}
{'schemas': {'zha_options': [{'default': 0, 'name': 'default_light_transition', 'optional': True, 'type': 'float', ......, 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}} != {'schemas': {'zha_options': [{'default': 0, 'name': 'default_light_transition', 'optional': True, 'type': 'float', ......, 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}}
Full diff:
{
'data': {
'zha_options': {
'always_prefer_xy_color_mode': True,
'consider_unavailable_battery': 21600,
'consider_unavailable_mains': 7200,
'default_light_transition': 0,
'enable_identify_on_join': True,
+ 'enable_mains_startup_polling': True,
'enhanced_light_transition': True,
'group_members_assume_state': False,
'light_transitioning_flag': True,
},
},
'schemas': {
'zha_options': [
{
'default': 0,
'name': 'default_light_transition',
'optional': True,
'type': 'float',
'valueMax': 6553.6,
'valueMin': 0,
},
{
'default': False,
'name': 'enhanced_light_transition',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'light_transitioning_flag',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'always_prefer_xy_color_mode',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'group_members_assume_state',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'enable_identify_on_join',
'required': True,
'type': 'boolean',
},
{
'default': 7200,
'name': 'consider_unavailable_mains',
'optional': True,
'type': 'integer',
'valueMin': 0,
},
{
'default': 21600,
'name': 'consider_unavailable_battery',
'optional': True,
'type': 'integer',
'valueMin': 0,
},
+ {
+ 'default': True,
+ 'name': 'enable_mains_startup_polling',
+ 'required': True,
+ 'type': 'boolean',
+ },
],
},
}
|
Run tests Python 3.12 (zha):
tests/components/zha/test_websocket_api.py#L294
test_get_zha_config_with_alarm
AssertionError: assert {'data': {'zh...lean'}, ...]}} == {'data': {'zh...lean'}, ...]}}
Differing items:
{'data': {'zha_alarm_options': {'alarm_arm_requires_code': False, 'alarm_failed_tries': 2, 'alarm_master_code': '4321'... True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 0, ...}}} != {'data': {'zha_alarm_options': {'alarm_arm_requires_code': False, 'alarm_failed_tries': 2, 'alarm_master_code': '4321'... True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 0, ...}}}
{'schemas': {'zha_alarm_options': [{'default': '1234', 'name': 'alarm_master_code', 'required': True, 'type': 'string'..., 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}} != {'schemas': {'zha_alarm_options': [{'default': '1234', 'name': 'alarm_master_code', 'required': True, 'type': 'string'..., 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}}
Full diff:
{
'data': {
'zha_alarm_options': {
'alarm_arm_requires_code': False,
'alarm_failed_tries': 2,
'alarm_master_code': '4321',
},
'zha_options': {
'always_prefer_xy_color_mode': True,
'consider_unavailable_battery': 21600,
'consider_unavailable_mains': 7200,
'default_light_transition': 0,
'enable_identify_on_join': True,
+ 'enable_mains_startup_polling': True,
'enhanced_light_transition': True,
'group_members_assume_state': False,
'light_transitioning_flag': True,
},
},
'schemas': {
'zha_alarm_options': [
{
'default': '1234',
'name': 'alarm_master_code',
'required': True,
'type': 'string',
},
{
'default': 3,
'name': 'alarm_failed_tries',
'required': True,
'type': 'integer',
'valueMin': 0,
},
{
'default': False,
'name': 'alarm_arm_requires_code',
'required': True,
'type': 'boolean',
},
],
'zha_options': [
{
'default': 0,
'name': 'default_light_transition',
'optional': True,
'type': 'float',
'valueMax': 6553.6,
'valueMin': 0,
},
{
'default': False,
'name': 'enhanced_light_transition',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'light_transitioning_flag',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'always_prefer_xy_color_mode',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'group_members_assume_state',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'enable_identify_on_join',
'required': True,
'type': 'boolean',
},
{
'default': 7200,
'name': 'consider_unavailable_mains',
'optional': True,
'type
|
Run tests Python 3.12 (zha):
tests/components/zha/test_websocket_api.py#L330
test_update_zha_config
AssertionError: assert {'data': {'zh...lean'}, ...]}} == {'data': {'zh...lean'}, ...]}}
Differing items:
{'data': {'zha_options': {'always_prefer_xy_color_mode': True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 10.0, ...}}} != {'data': {'zha_options': {'always_prefer_xy_color_mode': True, 'consider_unavailable_battery': 21600, 'consider_unavailable_mains': 7200, 'default_light_transition': 10, ...}}}
{'schemas': {'zha_options': [{'default': 0, 'name': 'default_light_transition', 'optional': True, 'type': 'float', ......, 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}} != {'schemas': {'zha_options': [{'default': 0, 'name': 'default_light_transition', 'optional': True, 'type': 'float', ......, 'type': 'boolean'}, {'default': True, 'name': 'enable_identify_on_join', 'required': True, 'type': 'boolean'}, ...]}}
Full diff:
{
'data': {
'zha_options': {
'always_prefer_xy_color_mode': True,
'consider_unavailable_battery': 21600,
'consider_unavailable_mains': 7200,
- 'default_light_transition': 10,
+ 'default_light_transition': 10.0,
? ++
'enable_identify_on_join': True,
+ 'enable_mains_startup_polling': True,
'enhanced_light_transition': True,
'group_members_assume_state': False,
'light_transitioning_flag': True,
},
},
'schemas': {
'zha_options': [
{
'default': 0,
'name': 'default_light_transition',
'optional': True,
'type': 'float',
'valueMax': 6553.6,
'valueMin': 0,
},
{
'default': False,
'name': 'enhanced_light_transition',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'light_transitioning_flag',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'always_prefer_xy_color_mode',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'group_members_assume_state',
'required': True,
'type': 'boolean',
},
{
'default': True,
'name': 'enable_identify_on_join',
'required': True,
'type': 'boolean',
},
{
'default': 7200,
'name': 'consider_unavailable_mains',
'optional': True,
'type': 'integer',
'valueMin': 0,
},
{
'default': 21600,
'name': 'consider_unavailable_battery',
'optional': True,
'type': 'integer',
'valueMin': 0,
},
+ {
+ 'default': True,
+ 'name': 'enable_mains_startup_polling',
+ 'required': True,
+ 'type': 'boolean',
+ },
],
},
}
|
Run tests Python 3.12 (zha)
1.31s setup tests/components/zha/test_climate.py::test_target_temperature_high[away-None-None]
|
Run tests Python 3.12 (zha)
1.29s setup tests/components/zha/test_alarm_control_panel.py::test_alarm_control_panel
|
Run tests Python 3.12 (zha)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
pytest-211305-3.12-zha
Expired
|
6.51 KB |
|