Skip to content

Commit

Permalink
Remove another 'supported' check (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
itavero authored May 21, 2024
1 parent 3d9a3d9 commit d14a622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Since version 1.0.0, we try to follow the [Semantic Versioning](https://semver.o

## [Unreleased]

### Fixed

- Overlooked an `supported` check in the previous version. This is now also removed, so devices not officially supported by Zigbee2MQTT can now be used.

## [1.11.0-beta.4] - 2024-05-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/z2mModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export interface DeviceListEntryForGroup extends DeviceListEntry {
}

export const isDeviceListEntry = (x: any): x is DeviceListEntry =>
!isNullOrUndefined(x) && x.ieee_address && x.friendly_name && x.supported;
!isNullOrUndefined(x) && x.ieee_address && x.friendly_name && typeof x.supported === 'boolean';
export const isDeviceListEntryForGroup = (x: any): x is DeviceListEntryForGroup => {
return isDeviceListEntry(x) && 'group_id' in x && typeof x['group_id'] === 'number';
};
Expand Down

0 comments on commit d14a622

Please sign in to comment.