SWS-12500-custom-component/custom_components
SchiZzA acda94bb03
fix(utils): widen wind_dir_to_text param to float | str | None
The azimut value_from_data_fn now passes dir.get(WIND_DIR) (typed Any | None),
which tripped basedpyright reportArgumentType against the float-only signature.
The body already coerces via to_float() and handles None, so widen the
annotation to match the real inputs (raw str payload, float, or None).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 12:53:46 +02:00
..
sws12500 fix(utils): widen wind_dir_to_text param to float | str | None 2026-06-21 12:53:46 +02:00