Skip to content

Commit

Permalink
improve active/stale bridge detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Feb 22, 2025
1 parent b6fe6a6 commit bef5e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.

- updates to the `uk.json` language file (#2352) (@xrust83)
- add missing add section button to plugin config screens
- improve active/stale bridge detection

### Other Changes

Expand Down
2 changes: 1 addition & 1 deletion src/modules/server/server.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class ServerService {
const pluginBlock = configFile.accessories
.concat(configFile.platforms)
.concat([{ _bridge: configFile.bridge }])
.find((block: any) => block._bridge?.username?.toUpperCase() === username.toUpperCase() && block._bridge?.port)
.find((block: any) => block._bridge?.username?.toUpperCase() === username.toUpperCase())

try {
device._category = Object.entries(Categories).find(([, value]) => value === device.category)[0].toLowerCase()
Expand Down

0 comments on commit bef5e9a

Please sign in to comment.