Add duration device class for total print time and longest print sensors #638
Annotations
3 errors and 1 warning
Run tests:
tests/test_sensor.py#L132
test_sensors[mainsail_totals_print_time-11348.79]
AssertionError: assert '11348.794790097' == '11348.79'
- 11348.79
+ 11348.794790097
|
Run tests:
tests/test_sensor.py#L132
test_sensors[mainsail_longest_print-11348.79]
AssertionError: assert '11348.794790097' == '11348.79'
- 11348.79
+ 11348.794790097
|
Run tests
Process completed with exit code 1.
|
Validate
[CONFIG_SCHEMA] Integrations which implement 'async_setup' or 'setup' must define either 'CONFIG_SCHEMA', 'PLATFORM_SCHEMA' or 'PLATFORM_SCHEMA_BASE'. If the integration has no configuration parameters, can only be set up from platforms or can only be set up from config entries, one of the helpers cv.empty_config_schema, cv.platform_only_config_schema or cv.config_entry_only_config_schema can be used.
|