FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update readme fixture checker and readme (#699) · pillarsdotnet/python-kasa@0fcdb73 · GitHub

Repository navigation

Commit 0fcdb73

Browse files
authored
Update readme fixture checker and readme (python-kasa#699)
1 parent 0c7de10 commit 0fcdb73

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,13 @@ At the moment, the following devices have been confirmed to work:
282282
#### Plugs
283283

284284
* Tapo P110
285+
* Tapo P125M
285286
* Tapo P135 (dimming not yet supported)
286287

287288
#### Bulbs
288289

289290
* Tapo L510B
291+
* Tapo L510E
290292
* Tapo L530E
291293

292294
#### Light strips
@@ -334,7 +336,7 @@ use it directly you should expect it could break in future releases until this s
334336
Other TAPO libraries are:
335337

336338
* [PyTapo - Python library for communication with Tapo Cameras](https://github.com/JurajNyiri/pytapo)
337-
* [Tapo P100 (Tapo P105/P100 plugs, Tapo L510E bulbs)](https://github.com/fishbigger/TapoP100)
339+
* [Tapo P100 (Tapo plugs, Tapo bulbs)](https://github.com/fishbigger/TapoP100)
338340
* [Home Assistant integration](https://github.com/fishbigger/HomeAssistant-Tapo-P100-Control)
339341
* [plugp100, another tapo library](https://github.com/petretiandrea/plugp100)
340342
* [Home Assistant integration](https://github.com/petretiandrea/home-assistant-tapo-p100)

‎devtools/check_readme_vs_fixtures.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Script that checks if README.md is missing devices that have fixtures."""
2+
import re
23
import sys
34

45
from kasa.tests.conftest import (
@@ -32,10 +33,11 @@ def _get_device_type(dev, typemap):
3233

3334
found_unlisted = False
3435
for dev in ALL_DEVICES:
35-
if dev not in readme:
36+
regex = rf"^\*.*\s{dev}"
37+
match = re.search(regex, readme, re.MULTILINE)
38+
if match is None:
3639
print(f"{dev} not listed in {_get_device_type(dev, typemap)}")
3740
found_unlisted = True
3841

39-
4042
if found_unlisted:
4143
sys.exit(-1)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL