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

Hide NFC if the device reports it has no hardware #941

Merged
merged 2 commits into from Sep 16, 2020

Conversation

dshokouhi
Copy link
Member

Was helping out a user in Discord who could not see the NFC option and it ended up being his HA version was not on 0.114 or higher. While inspecting the code I noticed we do not check for NFC hardware when we look to make the option visible. Now we will do a check with package manager and if successful we will continue with current logic looking at the HA version, if unavailable the option will be hidden. Tested on my pixel 4 xl that has NFC support as well as 2 amazon tablets that do not have NFC, NFC remains hidden on tablets that don't have the hardware.

Copy link
Collaborator

@JBassett JBassett left a comment

Choose a reason for hiding this comment

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

@JBassett JBassett merged commit debeadb into home-assistant:master Sep 16, 2020
@dshokouhi dshokouhi deleted the hide_nfc_as_needed branch March 24, 2021 16:12
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.

None yet

3 participants