Skip to content

Added password mode to input_text (obscure content of text box)#11849

Merged
pvizeli merged 5 commits into
home-assistant:devfrom
covrig:dev
Feb 8, 2018
Merged

Added password mode to input_text (obscure content of text box)#11849
pvizeli merged 5 commits into
home-assistant:devfrom
covrig:dev

Conversation

@covrig
Copy link
Copy Markdown
Contributor

@covrig covrig commented Jan 21, 2018

Description:

Provide an optional way for the user to securely enter a password/text value.
In combination with:
home-assistant/frontend#837
Pull request in home-assistant.github.io with documentation (if applicable):
home-assistant/home-assistant.io#4489

Example entry for configuration.yaml (if applicable):

input_text:
  text1:
    name: Text 1
    initial: Some Text
    mode: password (optional, default is text)

Checklist:

Temperature detection range: -20 - 60 Deg.C ( + / - 0.3 Deg.C )
Humidity detection range: 0 - 100pct RH ( + / - 0.3pct )
Atmospheric pressure detection range: 30 - 110KPa ( + / - 120Pa )
Hide the content of the input_text field
elif self._data_key == 'pressure' and value == 0:
return False
self._state = round(value, 2)
self._state = round(value, 1)
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.

Is on purpose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes the PR was already approved. I completely forgot about it. My apologies.
#11673

Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

Please remove the Aqara commit from your PR and add a test for the new mode.

Copy link
Copy Markdown
Contributor Author

@covrig covrig left a comment

Choose a reason for hiding this comment

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

@balloob Added test and removed the Xiaomi-Aqara PR. Thanks.

Copy link
Copy Markdown
Contributor

@tinloaf tinloaf left a comment

Choose a reason for hiding this comment

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

Aside from linting, this looks good to me. The frontend PR should probably be split into two, though. "One change, one PR" makes it easier. ;)

@pvizeli pvizeli merged commit 905bb36 into home-assistant:dev Feb 8, 2018
@balloob balloob mentioned this pull request Feb 9, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants