Skip to content

Commit 3d7d10e

Browse files
authored
fix typo in code example in readme
1 parent 7d118da commit 3d7d10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ You can also import the collection:
224224
import { entitiesColl } from "home-assistant-js-websocket";
225225

226226
// conn is the connection from earlier.
227-
const coll = entitiesColl(connection);
227+
const coll = entitiesColl(conn);
228228
console.log(coll.state);
229229
await coll.refresh();
230230
coll.subscribe((entities) => console.log(entities));

0 commit comments

Comments
 (0)