Warn if total_increasing sensor has negative states (#56564)
This commit is contained in:
parent
3a56e3a823
commit
6954614e62
5 changed files with 188 additions and 27 deletions
|
@ -922,12 +922,14 @@ async def test_entity_source_admin(hass, websocket_client, hass_admin_user):
|
|||
assert msg["success"]
|
||||
assert msg["result"] == {
|
||||
"test_domain.entity_1": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
"test_domain.entity_2": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -942,8 +944,9 @@ async def test_entity_source_admin(hass, websocket_client, hass_admin_user):
|
|||
assert msg["success"]
|
||||
assert msg["result"] == {
|
||||
"test_domain.entity_2": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -962,12 +965,14 @@ async def test_entity_source_admin(hass, websocket_client, hass_admin_user):
|
|||
assert msg["success"]
|
||||
assert msg["result"] == {
|
||||
"test_domain.entity_1": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
"test_domain.entity_2": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -1001,8 +1006,9 @@ async def test_entity_source_admin(hass, websocket_client, hass_admin_user):
|
|||
assert msg["success"]
|
||||
assert msg["result"] == {
|
||||
"test_domain.entity_2": {
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
"custom_component": False,
|
||||
"domain": "test_platform",
|
||||
"source": entity.SOURCE_PLATFORM_CONFIG,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue