Skip to content

Commit

Permalink
Ignore ws type
Browse files Browse the repository at this point in the history
  • Loading branch information
rianadon committed Dec 18, 2022
1 parent 006e227 commit 4597af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { toMatchSnapshot } from "jest-snapshot";

/** Retrieves entity state from Home Assistant */
export async function getEntity(hass: HomeAssistant<any>, entity_id: string) {
const coll = entitiesColl(hass.ws);
const coll = entitiesColl(hass.ws as any);
await coll.refresh();
const state = coll.state[entity_id];
if (!state) throw new Error(`Entity ${entity_id} not found`);
Expand Down

0 comments on commit 4597af4

Please sign in to comment.