mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-18 21:38:02 +00:00
Return alias as None for new discovery devices before update (#627)
* Trim the length of the unavailable device alias * Update to use short mac as auth required alias * Update to return alias as none
This commit is contained in:
@@ -70,7 +70,7 @@ async def test_children_on_since(dev):
|
||||
@strip
|
||||
async def test_get_plug_by_name(dev: SmartStrip):
|
||||
name = dev.children[0].alias
|
||||
assert dev.get_plug_by_name(name) == dev.children[0]
|
||||
assert dev.get_plug_by_name(name) == dev.children[0] # type: ignore[arg-type]
|
||||
|
||||
with pytest.raises(SmartDeviceException):
|
||||
dev.get_plug_by_name("NONEXISTING NAME")
|
||||
|
Reference in New Issue
Block a user