Skip to content

Random test fixes#6195

Merged
balloob merged 3 commits into
devfrom
random-test-fixes
Feb 24, 2017
Merged

Random test fixes#6195
balloob merged 3 commits into
devfrom
random-test-fixes

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Feb 24, 2017

Description:

While fixing some recorder stuff ran into these issues

  • SleepIQ sensor test no longer requires the sleepiq component test to run first
  • SleepIQ config validation now requires the domain correctly
  • Persistent config errors are stored in hass.data instead of global var (reduces test spam)

@mention-bot
Copy link
Copy Markdown

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @pvizeli and @kellerza to be potential reviewers.

@balloob balloob merged commit 58eb32b into dev Feb 24, 2017
@balloob balloob deleted the random-test-fixes branch February 24, 2017 05:44

CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(DOMAIN): vol.Schema({
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.

Is this a new standard? I haven't seen any other component that does it like this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

From my testing, it looked like not having this meant that not having sleepiq in your config was ok too (but it shouldn't, username is required)

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.

How could the component be setup without the domain in the config? From another component?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All the platforms depend on the main component.

@home-assistant home-assistant locked and limited conversation to collaborators Jun 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants