Conversation
Buttons use translation_key="remote_command" with a command_name placeholder. Number entities use translation_key for "ir_delay" and "ir_repeat" with translated names in all four languages (en, de, fr, es). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This integration reads storage and listens to bus events rather than receiving direct hardware pushes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Define a proper dataclass for runtime data and use entry.runtime_data instead of hass.data[DOMAIN][entry_id] dict lookups. Buttons receive the dataclass directly instead of looking up via config_entry_id. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ensures tuya_local storage is available before remote_buttons scans. May need to be reverted if hassfest rejects custom integration names. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
translation_keyfor entity names instead of hardcoded_attr_name(buttons + numbers, all 4 languages)iot_classfromlocal_pushtocalculated(reads storage/bus events, not hardware)hass.data[DOMAIN][entry_id]dict withRemoteButtonsDatadataclass usingentry.runtime_datatuya_localtoafter_dependencies(may need revert if hassfest rejects custom integration names)Test plan
tuya_localinafter_dependencies)🤖 Generated with Claude Code