Skip to content
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

Add meter endpoint name #6427

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Add meter endpoint name #6427

merged 1 commit into from
Feb 24, 2021

Conversation

sjorge
Copy link
Sponsor Contributor

@sjorge sjorge commented Feb 23, 2021

@Koenkk Koenkk merged commit 2ed9582 into Koenkk:dev Feb 24, 2021
@@ -41,7 +41,7 @@ const endpointNames = [
'button_11', 'button_12', 'button_13', 'button_14', 'button_15',
'button_16', 'button_17', 'button_18', 'button_19', 'button_20',
'button_light', 'button_fan_high', 'button_fan_med', 'button_fan_low',
'heat', 'cool', 'water',
'heat', 'cool', 'water', 'meter',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rethink this mechanism, currently if user adds a new device using external converted with endpoint name not listed here, all underlying logic will fail, we should extract endpoint names from device definitions (respecting external converters)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, but cannot think of a better solution now. The endpoint is a method so you never know 100% sure what is returned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants