mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-14 19: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:
@@ -108,6 +108,8 @@ async def test_discover_single(discovery_mock, custom_port, mocker):
|
||||
assert x._discovery_info is not None
|
||||
assert x.port == custom_port or x.port == discovery_mock.default_port
|
||||
assert update_mock.call_count == 0
|
||||
if discovery_mock.default_port == 80:
|
||||
assert x.alias is None
|
||||
|
||||
ct = ConnectionType.from_values(
|
||||
discovery_mock.device_type,
|
||||
|
Reference in New Issue
Block a user