Commit 3699577
authored
Fix entity callback registration when device lacks the property (#324)
Fixes the AC ports switch on River 2 Max (and likely other not migrated devices) being stuck as unavailable since 0.8.6. Fix is generic rather than tweaking the deprecated entry: _register_update_callback now bails out when the device doesn't expose prop_name, so any future description referencing a state or availability prop the device doesn't implement is silently ignored instead of bricking the entity.1 parent eeca5d6 commit 3699577
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments