Skip to content

Add PLATFORM_SCHEMA_BASE support to check_config.py#20663

Merged
balloob merged 1 commit into
home-assistant:devfrom
emontnemery:fix_check_config
Feb 1, 2019
Merged

Add PLATFORM_SCHEMA_BASE support to check_config.py#20663
balloob merged 1 commit into
home-assistant:devfrom
emontnemery:fix_check_config

Conversation

@emontnemery
Copy link
Copy Markdown
Contributor

@emontnemery emontnemery commented Feb 1, 2019

Description:

Add PLATFORM_SCHEMA_BASE support to check_config.py
This was missed when adding PLATFORM_SCHEMA_BASE in #20224

Related issue (if applicable): fixes #20647

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@emontnemery emontnemery requested a review from kellerza as a code owner February 1, 2019 13:09
@homeassistant homeassistant added cla-signed core small-pr PRs with less than 30 lines. labels Feb 1, 2019
@ghost ghost assigned emontnemery Feb 1, 2019
@ghost ghost added the in progress label Feb 1, 2019
@emontnemery emontnemery added this to the 0.87.0 milestone Feb 1, 2019
# Validate component specific platform schema
try:
p_validated = component.PLATFORM_SCHEMA(p_config)
if hasattr(component, 'PLATFORM_SCHEMA_BASE'):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should platform_schema not have a higher priority?
Never used platform_schema_base, not sure what the rules are

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, PLATFORM_SCHEMA_BASE should have higher priority.
Background here: #20224

@balloob balloob merged commit 44c2a83 into home-assistant:dev Feb 1, 2019
@ghost ghost removed the in progress label Feb 1, 2019
@balloob balloob mentioned this pull request Feb 6, 2019
@emontnemery emontnemery deleted the fix_check_config branch February 13, 2019 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config Check fails with Beta 0.87.0b0 in regards of Alarm Control Panel

4 participants