-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
zha: Handle both input and output clusters #8410
Conversation
endpoint.clusters] | ||
in_clusters = [endpoint.in_clusters[c] for c in profile_in_clusters | ||
if c in endpoint.in_clusters] | ||
out_clusters = [endpoint.out_clusters[c] for c in profile_out_clusters |
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.
line too long (86 > 79 characters)
|
||
if component: | ||
clusters = [endpoint.clusters[c] for c in used_clusters if c in | ||
endpoint.clusters] | ||
in_clusters = [endpoint.in_clusters[c] for c in profile_in_clusters |
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.
line too long (83 > 79 characters)
profile_info = zha_const.DEVICE_CLASS[endpoint.profile_id] | ||
component = profile_info[endpoint.device_type] | ||
|
||
if ha_const.CONF_TYPE in node_config: | ||
component = node_config[ha_const.CONF_TYPE] | ||
used_clusters = zha_const.COMPONENT_CLUSTERS[component] | ||
profile_in_clusters = zha_const.COMPONENT_CLUSTERS[component][0] | ||
profile_out_clusters = zha_const.COMPONENT_CLUSTERS[component][1] |
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.
line too long (81 > 79 characters)
profile_info = zha_const.DEVICE_CLASS[endpoint.profile_id] | ||
component = profile_info[endpoint.device_type] | ||
|
||
if ha_const.CONF_TYPE in node_config: | ||
component = node_config[ha_const.CONF_TYPE] | ||
used_clusters = zha_const.COMPONENT_CLUSTERS[component] | ||
profile_in_clusters = zha_const.COMPONENT_CLUSTERS[component][0] |
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.
line too long (80 > 79 characters)
bellows 0.3.0 changes the API to have both, renaming the attribute which used to be for input clusters in the process. This is in preparation for remotes.
🐬 |
bellows 0.3.0 changes the API to have both, renaming the attribute which used to be for input clusters in the process. This is in preparation for remotes.
bellows 0.3.0 changes the API to have both, renaming the attribute which used
to be for input clusters in the process.
This is in preparation for remotes.
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass