8000 Add script to generate homeassistant dhcp entries by rytilahti · Pull Request #677 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Add script to generate homeassistant dhcp entries #677

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rytilahti
Copy link
Member
@rytilahti rytilahti commented Jan 23, 2024
python -m devtools.generate_ha_dhcp_entries --manifest-file "~/code/home-assistant/homeassistant/components/tplink/manifest.json"
...
{'000000': set(),
 '003192': {'k[lps]*', 'e[sp]*'},
 '005f67': {'k[lps]*'},
 '1027f5': {'k[lps]*'},
 '1c3bf3': {'KP303(UK)', 'lb*', 'k[lps]*', 'KL130(EU)', 'hs*'},
 '1c61b4': {'k[lps]*', 'e[sp]*'},
 '30de4b': {'p1*', 'P115(EU)'},
 '3460f9': {'k[lps]*', 'l9*', 'L920'},
 '3c52a1': {'EP25',
            'L510',
            'L930',
            'P115(EU)',
            'S505',
            'TP25',
            'e[sp]*',
            'l5*'},
 '403f8c': {'k[lps]*'},
 '482254': {'P110', 'P125M', 'p1*', 'S500D'},
 '5091e3': {'k[lps]*', 'P115(EU)', 'KL125(US)'},
 '50c7bf': {'HS105(US)',
            'HS110(EU)',
            'HS110(US)',
            'HS200(US)',
            'HS220(US)',
            'LB100(US)',
            'LB120(US)',
            'LB130(US)',
            'hs*',
            'k[lps]*',
            'lb*'},
 '54af97': {'k[lps]*', 'e[sp]*', 'L900', 'KP115(US)'},
 '5c628b': {'TP15', 'L530', 'l5*'},
 '5ce931': {'L510', 'L530', 'l5*'},
 '60a4b7': {'k[lps]*'},
 '68ff7b': {'k[lps]*', 'lb*', 'hs*'},
 '6c5ab0': {'k[lps]*'},
 '704f57': {'HS100(UK)'},
 '74da88': {'KL60(UN)'},
 '788cb5': {'k[lps]*', 'P300'},
 '909a4a': {'k[lps]*'},
 '98dac4': {'k[lps]*', 'lb*', 'hs*'},
 '9c5322': {'k[lps]*', 'hs*'},
 'a842a1': {'L900', 'l9*'},
 'ac15a2': {'k[lps]*'},
 'b09575': {'k[lps]*', 'lb*', 'HS110(EU)', 'hs*'},
 'b0a7b9': {'k[lps]*'},
 'b4b024': {'hs*'},
 'c006c3': {'k[lps]*', 'HS300(US)', 'hs*', 'KP115(EU)'},
 'c0c9e3': {'k[lps]*'},
 'cc32e5': {'P100', 'KL430(US)', 'HS100(UK)'},
 'd80d17': {'KL120(US)'},
 'd84732': {'KP105(UK)'},
 'e848b8': {'k[lps]*', 'KL430(US)', 'e[sp]*'},
 'f0a731': {'P135', 'L900'}}

The script should also directly adjust the manifest.json with the known longest model prefixes for oui.

Copy link
codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.99%. Comparing base (1f62aee) to head (9250523).
Report is 277 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #677   +/-   ##
=======================================
  Coverage   87.99%   87.99%           
=======================================
  Files          41       41           
  Lines        3632     3632           
  Branches      910      910           
=======================================
  Hits         3196     3196           
  Misses        362      362           
  Partials       74       74           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rytilahti rytilahti force-pushed the janitor/ha_dhcp_generator branch from 84fb4e2 to 99b7a42 Compare February 2, 2024 15:06
@sdb9696 sdb9696 added this to the 0.7.0 milestone Feb 20, 2024
@rytilahti rytilahti removed this from the 0.7.0 milestone May 8, 2024
@rytilahti
Copy link
Member Author

Removed the milestone, as this is not really necessary for the 0.7.0 release. We still may want to sync the new, known OUIs to homeassistant (manually) prior the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0