Skip to content

Use references in guardian strings.json#40987

Merged
bachya merged 1 commit intohome-assistant:devfrom
daveychu:use_references_guardian
Oct 2, 2020
Merged

Use references in guardian strings.json#40987
bachya merged 1 commit intohome-assistant:devfrom
daveychu:use_references_guardian

Conversation

@daveychu
Copy link
Copy Markdown
Contributor

@daveychu daveychu commented Oct 1, 2020

Proposed change

Use references in guardian strings.json

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @daveychu,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@probot-home-assistant
Copy link
Copy Markdown

Hey there @bachya, mind taking a look at this pull request as its been labeled with an integration (guardian) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

Copy link
Copy Markdown
Contributor

@SNoof85 SNoof85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there can be more keys to do in this one :

  • already_configured
  • already_in_progress
  • connection_error can be cannot_connect

@daveychu daveychu force-pushed the use_references_guardian branch from acbcd13 to 72e0ebe Compare October 1, 2020 18:07
@daveychu
Copy link
Copy Markdown
Contributor Author

daveychu commented Oct 1, 2020

I think there can be more keys to do in this one :

  • already_configured
  • already_in_progress
  • connection_error can be cannot_connect

Which reference do you propose for already_in_progress? Not sure which one suits here and other strings.json don't reference anything yet either.

@SNoof85
Copy link
Copy Markdown
Contributor

SNoof85 commented Oct 1, 2020

I think there can be more keys to do in this one :

  • already_configured
  • already_in_progress
  • connection_error can be cannot_connect

Which reference do you propose for already_in_progress? Not sure which one suits here and other strings.json don't reference anything yet either.

Yes right, the already_in_progress is not yet implemented (see #40961).
It will be changed with the mentionned PR, so please do not take care of what i've said for this one :)

Otherwise looks good for others ! 👍

Copy link
Copy Markdown
Contributor

@SNoof85 SNoof85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See suggestion 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad, one more thing :

Suggested change
"connection_error": "[%key:common::config_flow::error::cannot_connect%]"
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"

And update config_flow.py and tests to reflect this change

@daveychu daveychu force-pushed the use_references_guardian branch from 72e0ebe to 63ab8b2 Compare October 1, 2020 19:16
Copy link
Copy Markdown
Contributor

@SNoof85 SNoof85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

@bachya bachya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@bachya bachya merged commit aba3cdc into home-assistant:dev Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants