iOS/Sources/Extensions/Widgets/Gauge
Nicholas Eidler b272b27a83
New gauge widget variant; fix leaked continuation (#2934)
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->
Main changes:
- Add a new variant for "no min/max label" gauge widget. This allows for
use cases where the user wants to label different gauges to
differentiate them. For example: indoor and outdoor temperature.
- Fix a bug where continuation leak in `action` block was causing the
widget to become unresponsive (both on my sim and local device). Note
that I don't do much iOS development so please let me know if there is a
more idiomatic / correct way to prevent this condition.

I decided to use a new gauge widget type instead of inferring the type
from which config options were filled or empty because the
`ParameterSummary` definition was becoming extremely unwieldy.

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

| Current normal gauge | New gauge type without min/max | Config for new
gauge type |
|--------|--------|--------|
| ![current normal
gauge](https://github.com/user-attachments/assets/63c07476-a6ec-493e-8707-5dff352979f4)
| ![normal without min or
max](https://github.com/user-attachments/assets/a6d611fe-fe86-4960-b32c-1ed5e55ba52c)
| ![config for normal without min or
max](https://github.com/user-attachments/assets/6abb2ae3-e108-49bc-a12d-a002f296a653)
|
2024-08-28 09:43:43 +02:00
..
WidgetGauge.swift Scout - Remove lock screen widgets force unwrap (#2882) 2024-07-30 10:05:55 +02:00
WidgetGaugeView.swift New gauge widget variant; fix leaked continuation (#2934) 2024-08-28 09:43:43 +02:00