mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Added Time Remaining and Time Elapsed sensors for octoprint (#8581)
Add an optional extended description…
This commit is contained in:
parent
e63a96cf53
commit
4f8d2ec317
@ -25,6 +25,8 @@ SENSOR_TYPES = {
|
|||||||
'Temperatures': ['printer', 'temperature', '*', TEMP_CELSIUS],
|
'Temperatures': ['printer', 'temperature', '*', TEMP_CELSIUS],
|
||||||
'Current State': ['printer', 'state', 'text', None],
|
'Current State': ['printer', 'state', 'text', None],
|
||||||
'Job Percentage': ['job', 'progress', 'completion', '%'],
|
'Job Percentage': ['job', 'progress', 'completion', '%'],
|
||||||
|
'Time Remaining': ['job', 'progress', 'printTimeLeft', 'seconds'],
|
||||||
|
'Time Elapsed': ['job', 'progress', 'printTime', 'seconds'],
|
||||||
}
|
}
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user