Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ozziii
Copy link

@ozziii ozziii commented Feb 14, 2022

Some VTO device like VTO2111D-P-S2 have NFC Tag reader.
With propose code add therse features

Some VTO device like IPC-HDW3441TM-AS have NFC Tag reader. 
With propose code add therse features
asyncio.run_coroutine_threadsafe(
async_scan_tag(self.hass, card_id_md5, self.get_device_name()), self.hass.loop
).result()
return
Copy link
Owner

Choose a reason for hiding this comment

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

Are you certain this return needs to be here?

Copy link
Author

Choose a reason for hiding this comment

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

Non necessary for the code execution. "return" avoid the code check again for event_key or listner,
reducing computational cost.

Choose a reason for hiding this comment

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

I am not the owner of the PR, but I confirm that the code works once you remove the unneeded return, as you very well pointed out.

Shall we wait for @ozziii to fix it, or do you want me to do a separate PR?

@TECH7Fox
Copy link

Should we make a new PR for this? Think @ozziii abandoned this PR. Willing to make a new PR myself.

Copy link
Author

@ozziii ozziii left a comment

Choose a reason for hiding this comment

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

removed return

@TECH7Fox
Copy link

@rroller could this be merged soon? This feature would be great.

@rroller
Copy link
Owner

rroller commented May 28, 2023

Hmm, there's a merge conflict, this needs to be fixed first, then i'll merge

rroller added a commit that referenced this pull request May 28, 2023
@rroller
Copy link
Owner

rroller commented May 28, 2023

I created a new PR and merged it in #279

@rroller rroller closed this May 28, 2023
@rroller
Copy link
Owner

rroller commented May 28, 2023

Released in 0.9.45 - https://github.com/rroller/dahua/releases/tag/0.9.45

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.

4 participants