Skip to content

Fix call to parent broadlink switch#13906

Merged
MartinHjelmare merged 2 commits intodevfrom
issue#13799
Apr 17, 2018
Merged

Fix call to parent broadlink switch#13906
MartinHjelmare merged 2 commits intodevfrom
issue#13799

Conversation

@Danielhiversen
Copy link
Copy Markdown
Member

@Danielhiversen Danielhiversen commented Apr 15, 2018

Description:

Broadlink switch, fixes #13799

@Danielhiversen Danielhiversen added this to the 0.67.1 milestone Apr 15, 2018
@MartinHjelmare MartinHjelmare changed the title Broadlink switch, fixes issue #13799 Fix call to parent broadlink switch Apr 15, 2018
def __init__(self, friendly_name, device):
"""Initialize the switch."""
super().__init__(friendly_name, device, None, None)
super().__init__(friendly_name, friendly_name, device, None, None)
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.

As mentioned in the related issue, this should be slugified before used for the entity_id. Probably do that in the parent.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

🎉

@MartinHjelmare MartinHjelmare merged commit 08f545d into dev Apr 17, 2018
@MartinHjelmare MartinHjelmare deleted the issue#13799 branch April 17, 2018 15:41
balloob pushed a commit that referenced this pull request Apr 18, 2018
* Broadlink switch, fixes issue #13799

* slugify
@balloob balloob mentioned this pull request Apr 18, 2018
@balloob balloob removed this from the 0.67.1 milestone Apr 18, 2018
@balloob balloob mentioned this pull request Apr 27, 2018
@balloob balloob added this to the 0.67.1 milestone Apr 27, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 2018
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.

Broadlink SP1 & SP2 switch could not work correctly

5 participants