Platinum quality upgrade with sensor platform, tests, and brand images - #7
Open
MichaelB2018 wants to merge 1 commit into
Open
Platinum quality upgrade with sensor platform, tests, and brand images#7MichaelB2018 wants to merge 1 commit into
MichaelB2018 wants to merge 1 commit into
Conversation
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
Major upgrade bringing the integration to Platinum quality scale standards. This is a complete rewrite of the integration while preserving the original domain and functionality.
What's New
Sensor Platform
Vendored Hub Library
lc7001PyPI dependency with a vendoredhub.py(fromlc7001v1.0.5, MIT license by Ross Tyler)cryptography>=42.0.0local_push)Config Flow Improvements
Diagnostics
Brand Images
icon.png,icon@2x.png, andlogo.pngin bothbrand/(repo root for HACS) andcustom_components/legrand_rflc/brand/(for HA local branding)Full Test Suite
test_config_flow.py— user step, reauth, reconfigure, DHCP discovery, error handlingtest_init.py— setup, teardown, unloadtest_light.py— entity creation, state updates, commands, availability, brightness normalizationtest_diagnostics.py— connected/disconnected output, auth redactionOther Improvements
_attr_has_entity_name = Truewith translation keysDeviceInfoon every entity (switch, dimmer, hub)quality_scale.yamltracking all HA quality scale rulespy.typedmarkermanifest.jsonwithintegration_type: device, DHCP matchers, andiot_class: local_pushBreaking Changes
None — this is a drop-in upgrade. Existing users will see new sensor entities appear after updating.
Testing
Tests use
pytest-homeassistant-custom-component. Run with: