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

Missing i8n #1

Closed
cicero200272 opened this issue Jan 3, 2020 · 2 comments
Closed

Missing i8n #1

cicero200272 opened this issue Jan 3, 2020 · 2 comments

Comments

@cicero200272
Copy link

In device_tracker.py (line 81) the regular expression contains a hard-coded "at".

Since the RPi where my HA installation runs is localized in German, the arp table shows "auf" instead of "at", so that the regex does not match any item at all...

Perhaps you could use something like [A-Za-z]+ instead of "at"?

@balrog-kun
Copy link
Owner

I'll have to check arp code but it sounds like the whole arp -a format can vary depending on locale, so maybe we should use the table format instead, arp with no -a. But it seems that table doesn't include the IP and the hostname is trimmed to fit the column width... I'll have a look at the arp code this weekend.

@balrog-kun
Copy link
Owner

balrog-kun commented Jan 12, 2020

Looking at the arp code I didn't find a better solution than to use [A-Za-z ]+ in place of the "at", both the arp -a and arp -e formats may be localized.. the latter would be better but the strings get truncated to columns widths in that format. Thanks for the reports by the way.

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

No branches or pull requests

2 participants