Skip to content

Add duration device class for total print time and longest print sensors #629

Add duration device class for total print time and longest print sensors

Add duration device class for total print time and longest print sensors #629

Triggered via pull request May 31, 2024 18:25
Status Failure
Total duration 2m 12s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
Run tests: tests/test_sensor.py#L132
test_sensors[mainsail_totals_print_time-3h 9m 9s] AssertionError: assert '11348.794790097' == '3h 9m 9s' - 3h 9m 9s + 11348.794790097
Run tests: tests/test_sensor.py#L132
test_sensors[mainsail_longest_print-3h 9m 9s] AssertionError: assert '11348.794790097' == '3h 9m 9s' - 3h 9m 9s + 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.