Skip to content

Fix sensibo default IDs to be according to schema#12837

Merged
balloob merged 1 commit intohome-assistant:devfrom
andrey-git:sensibo
Mar 2, 2018
Merged

Fix sensibo default IDs to be according to schema#12837
balloob merged 1 commit intohome-assistant:devfrom
andrey-git:sensibo

Conversation

@andrey-git
Copy link
Copy Markdown
Contributor

Description:

Fix sensibo default IDs to be according to schema.

Related issue (if applicable): fixes #12757

Example entry for configuration.yaml (if applicable):

climate:
  - platform: sensibo
    api_key: deadbeef

Checklist:

  • The code change is tested and works locally.

@andrey-git andrey-git added this to the 0.64.3 milestone Mar 2, 2018
_LOGGER = logging.getLogger(__name__)

ALL = 'all'
ALL = ['all']
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.

This shouldn't be necessary since voluptuous will pass ALL through the validator, which will be turned into a list by cv.ensure_list.

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.

image

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.

The part that fails is comparing the result (['all']) with ALL on line 73.

@andrey-git
Copy link
Copy Markdown
Contributor Author

I think the test failure is unrelated to this PR

@balloob
Copy link
Copy Markdown
Member

balloob commented Mar 2, 2018

Yeah that flaky test was my fault for merging.

@balloob balloob merged commit e20e042 into home-assistant:dev Mar 2, 2018
@balloob balloob mentioned this pull request Mar 2, 2018
@andrey-git andrey-git deleted the sensibo branch March 11, 2018 13:15
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sensibo Climate Component broken at 0.64

3 participants