Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None preset always present and custom value conversion #1

Merged
merged 5 commits into from
Dec 10, 2022

Conversation

AlePerla
Copy link
Owner

  • "None" preset always added if there are other presets
  • Custom values for DP_ECO can have several (bool, int, string) conversions before being sent

…et always added if there are presets (to fix values display during config flow)

modified:   custom_components/localtuya/__init__.py
	* no dots in logged lines
modified:   custom_components/localtuya/climate.py
	+ function to convert value based on selected format
	* add No preset always if there are other presets
modified:   custom_components/localtuya/const.py
	+ constants for format and none value
modified:   custom_components/localtuya/manifest.json
	* version
	* codeowners
modified:   custom_components/localtuya/strings.json
modified:   custom_components/localtuya/translations/en.json
modified:   custom_components/localtuya/translations/it.json
modified:   custom_components/localtuya/translations/pt-BR.json
	+ translations (to be fixed pt-BR)
…et always added if there are presets (to fix values display during config flow)

modified:   custom_components/localtuya/__init__.py
	* no dots in logged lines
modified:   custom_components/localtuya/climate.py
	+ function to convert value based on selected format
	* add No preset always if there are other presets
modified:   custom_components/localtuya/const.py
	+ constants for format and none value
modified:   custom_components/localtuya/manifest.json
	* version
	* codeowners
modified:   custom_components/localtuya/strings.json
modified:   custom_components/localtuya/translations/en.json
modified:   custom_components/localtuya/translations/it.json
modified:   custom_components/localtuya/translations/pt-BR.json
	+ translations (to be fixed pt-BR)
	* set of none without return was sending it dobled and with wrong value
	* using custom values only when set
@AlePerla AlePerla merged commit bbe1b7e into main Dec 10, 2022
@AlePerla AlePerla deleted the none_preset_always_value_conversion branch December 10, 2022 11:20
@AlePerla AlePerla restored the none_preset_always_value_conversion branch December 10, 2022 11:33
AlePerla pushed a commit that referenced this pull request Feb 4, 2025
…t_registry

Fix depreciated async_get_registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant