-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Define endpoint in definition.toZigbee containing key 'state' (#…
…8190) * Define endpoint in definition.toZigbee containing key 'state' To allow the selection of the proper converter with multi endpoints divice at zigbee2mqtt-master\lib\extension\publish.ts at line "const converter = converters.find...c.endpoint == endpointName" This change corrects issue Koenkk/zigbee2mqtt#24352 * Code format with Prettier * Simplify Tz.Converter.endpoints type to string[] array only
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -331,7 +331,7 @@ export namespace Tz { | |
export interface Converter { | ||
key?: string[]; | ||
options?: Option[] | ((definition: Definition) => Option[]); | ||
endpoint?: string; | ||
endpoints?: string[]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Zitrium31
Author
Contributor
|
||
convertSet?: (entity: Zh.Endpoint | Zh.Group, key: string, value: unknown, meta: Tz.Meta) => Promise<ConvertSetResult>; | ||
convertGet?: (entity: Zh.Endpoint | Zh.Group, key: string, meta: Tz.Meta) => Promise<void>; | ||
} | ||
|
This changes is causing an error when we compile z2m in the
publish
module:@Zitrium31 i guess we are waiting your PR into z2m now, will have to manually patch z2m or zhc until it is done :(