Commit 41dc233
Ravi Singh
fix(config_flow): use unique hub hostname for zeroconf discovery name
Hubs were all showing as "TankSync Water Monitor" (and colliding as "…-2")
in the Discovered list because the config flow used the mDNS service INSTANCE
name — which firmware broadcasts as a constant "TankSync Water Monitor" for
every hub. The mDNS HOSTNAME is unique per hub (e.g. "tanksync-5704"), so
prefer it for the discovery display name — restoring the unique tanksync-XXXX
label. Falls back to the instance name (disambiguated by hub_id) only when no
hostname is present. Bumps version 0.11.1 -> 0.11.2.1 parent d8cc3c9 commit 41dc233
2 files changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
194 | 202 | | |
195 | 203 | | |
196 | | - | |
| 204 | + | |
197 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
198 | 217 | | |
199 | 218 | | |
200 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments