mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-23 15:11:25 +00:00
extract shared types (exceptions, enums), add module level doc, rename exception to be generic
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from ..protocol import TPLinkSmartHomeProtocol
|
||||
from .. import SmartPlugException
|
||||
from .. import SmartDeviceException
|
||||
import logging
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ class FakeTransportProtocol(TPLinkSmartHomeProtocol):
|
||||
|
||||
def query(self, host, request, port=9999):
|
||||
if self.invalid:
|
||||
raise SmartPlugException("Invalid connection, can't query!")
|
||||
raise SmartDeviceException("Invalid connection, can't query!")
|
||||
|
||||
proto = self.proto
|
||||
|
||||
|
||||
Reference in New Issue
Block a user