Commit 80cae1d
committed
Fix TypeError: coroutine was expected, got None
- Replace async_create_task() calls with direct calls to async_write_ha_state()
- async_write_ha_state() is synchronous, not a coroutine
- Fixes issue reported in #54 comments where users got TypeError
- Updated both template_sensor_state_listener and template_sensor_startup callbacks1 parent ead612a commit 80cae1d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments