Fix recorder platform tests (#88330)
This commit is contained in:
parent
dfdd279add
commit
9989a4787b
27 changed files with 137 additions and 29 deletions
|
@ -46,7 +46,11 @@ async def test_exclude_attributes(recorder_mock: Recorder, hass: HomeAssistant)
|
|||
attr_ids[
|
||||
db_state_attributes.attributes_id
|
||||
] = db_state_attributes.to_native()
|
||||
for db_state, db_state_attributes in session.query(States, StateAttributes):
|
||||
for db_state, db_state_attributes in session.query(
|
||||
States, StateAttributes
|
||||
).outerjoin(
|
||||
StateAttributes, States.attributes_id == StateAttributes.attributes_id
|
||||
):
|
||||
state = db_state.to_native()
|
||||
state.attributes = attr_ids[db_state.attributes_id]
|
||||
native_states.append(state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue