-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix Bosch BTH-RA Home Assistant discovery #7720
Conversation
Looks good! 👍 |
@@ -209,7 +209,7 @@ export interface DefinitionMeta { | |||
/** | |||
* Override the Home Assistant discovery payload using a custom function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a line that informs on where this is executed?
/**
* Override the Home Assistant discovery payload using a custom function.
* Executed right before the payload is passed to `stringify`, before publishing.
*/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Maybe mentioning the homeassistant.ts
extension explicitly would be helpful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stellar improvement, LGTM! 🤝
@@ -209,7 +209,7 @@ export interface DefinitionMeta { | |||
/** | |||
* Override the Home Assistant discovery payload using a custom function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Maybe mentioning the homeassistant.ts
extension explicitly would be helpful?
@@ -1354,20 +1354,20 @@ const definitions: Definition[] = [ | |||
vendor: 'Bosch', | |||
description: 'Radiator thermostat II', | |||
meta: { | |||
overrideHaConfig: (configs) => { | |||
const entry = configs.findIndex((e) => e.type === 'climate'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better to just pass a single payload, and not all at once. Like it!
Required for Koenkk/zigbee2mqtt#23075