mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Some release preparation janitoring (#432)
* Use myst-parser for readme.md doc injection * Relax version pins * Define bug tracker and doc links for pypi * Update pre-commit hooks
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
import logging
|
||||
import re
|
||||
|
||||
from voluptuous import ( # type: ignore
|
||||
REMOVE_EXTRA,
|
||||
All,
|
||||
Any,
|
||||
Coerce,
|
||||
Invalid,
|
||||
Optional,
|
||||
Range,
|
||||
Schema,
|
||||
)
|
||||
from voluptuous import Coerce # type: ignore
|
||||
from voluptuous import REMOVE_EXTRA, All, Any, Invalid, Optional, Range, Schema
|
||||
|
||||
from ..protocol import TPLinkSmartHomeProtocol
|
||||
|
||||
@@ -467,7 +459,6 @@ class FakeTransportProtocol(TPLinkSmartHomeProtocol):
|
||||
child_ids = []
|
||||
|
||||
def get_response_for_module(target):
|
||||
|
||||
if target not in proto.keys():
|
||||
return error(msg="target not found")
|
||||
|
||||
|
@@ -108,7 +108,6 @@ async def test_all_binary_states(dev):
|
||||
|
||||
# toggle each outlet with state map applied
|
||||
for plug_index in range(len(dev.children)):
|
||||
|
||||
# toggle state
|
||||
if state_map[plug_index]:
|
||||
await dev.turn_off(index=plug_index)
|
||||
|
Reference in New Issue
Block a user