feat(knx): enable sensor creation via API #231461
Annotations
3 errors
Run pytest:
tests/components/knx/test_config_store.py#L51
test_create_entity
AssertionError: assert {'entity': {'...state': True}} == {'entity': {'...state': True}}
Omitting 1 identical items, use -vv to show
Differing items:
{'entity': {'device_class': None, 'device_info': None, 'entity_category': None, 'name': 'Test no device', ...}} != {'entity': {'device_info': None, 'entity_category': None, 'name': 'Test no device'}}
Full diff:
{
'entity': {
+ 'device_class': None,
'device_info': None,
'entity_category': None,
'name': 'Test no device',
+ 'state_class': None,
},
'knx': {
'ga_switch': {
'passive': [],
'state': None,
'write': '1/2/3',
},
'invert': False,
'respond_to_read': False,
'sync_state': True,
},
}
|
Run pytest:
tests/components/knx/test_config_store.py#L328
test_get_entity_config
AssertionError: assert {'entity': {'...state': True}} == {'entity': {'...state': True}}
Omitting 1 identical items, use -vv to show
Differing items:
{'entity': {'device_class': None, 'device_info': None, 'entity_category': None, 'name': 'Test', ...}} != {'entity': {'device_info': None, 'entity_category': None, 'name': 'Test'}}
Full diff:
{
'entity': {
+ 'device_class': None,
'device_info': None,
'entity_category': None,
'name': 'Test',
+ 'state_class': None,
},
'knx': {
'ga_switch': {
'passive': [],
'state': None,
'write': '1/2/3',
},
'invert': False,
'respond_to_read': False,
'sync_state': True,
},
}
|
Run pytest
Process completed with exit code 1.
|
Loading