Skip to content
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

Remove since last boot from systemmonitor sensor #18644

Merged
merged 2 commits into from
Nov 23, 2018
Merged

Conversation

balloob
Copy link
Member

@balloob balloob commented Nov 22, 2018

Description:

We shouldn't store relative times in the state machine. We should only have last_boot (which already exists) and give it the timestamp device class (is an architecture issue for), and then let the UI deal with updating it.

@mbo18
Copy link
Contributor

mbo18 commented Nov 23, 2018

Correct me if I’m wrong but last_boot does not currently return a timestamp but a date. So we will lose information here

@balloob
Copy link
Member Author

balloob commented Nov 23, 2018

Updated last_boot to be the full timestamp. If people want running time, home-assistant/architecture#39 is going to fix that.

@balloob balloob merged commit c0cf29a into dev Nov 23, 2018
@ghost ghost removed the in progress label Nov 23, 2018
@balloob balloob deleted the monitor-since-last-boot branch November 23, 2018 10:55
frenck pushed a commit to home-assistant/home-assistant.io that referenced this pull request Nov 24, 2018
@balloob balloob mentioned this pull request Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants