8000 Remove sensor state by pavoni · Pull Request #940 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove sensor state #940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 20, 2016
Merged

Remove sensor state #940

merged 5 commits into from
Jan 20, 2016

Conversation

pavoni
Copy link
Contributor
@pavoni pavoni commented Jan 20, 2016

This PR removes 'sensor_state' from the base switch, and puts into a device specific attribute.

attr = super().state_attributes or {}
if self.maker_params:
# Is the maker sensor on or off.
if self.entity_id == 'switch.hi_fi_systemline_sensor':
Copy link
Member

Choose a reason for hiding this comment

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

?

@balloob
Copy link
Member
balloob commented Jan 20, 2016

🐬

balloob added a commit that referenced this pull request Jan 20, 2016
@balloob balloob merged commit fdc8c45 into dev Jan 20, 2016
@balloob balloob deleted the remove_sensor_state branch January 21, 2016 16:50
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0