diff --git a/kasa/device.py b/kasa/device.py index cebec582..63eafa5b 100644 --- a/kasa/device.py +++ b/kasa/device.py @@ -366,8 +366,4 @@ class Device(ABC): def __repr__(self): if self._last_update is None: return f"<{self.device_type} at {self.host} - update() needed>" - return ( - f"<{self.device_type} model {self.model} at {self.host}" - f" ({self.alias}), is_on: {self.is_on}" - f" - dev specific: {self.state_information}>" - ) + return f"<{self.device_type} at {self.host} - {self.alias} ({self.model})>" diff --git a/kasa/smart/smartchilddevice.py b/kasa/smart/smartchilddevice.py index 6d7bfa58..1ea517aa 100644 --- a/kasa/smart/smartchilddevice.py +++ b/kasa/smart/smartchilddevice.py @@ -56,4 +56,4 @@ class SmartChildDevice(SmartDevice): return dev_type def __repr__(self): - return f"" + return f"<{self.device_type} {self.alias} ({self.model}) of {self._parent}>" diff --git a/kasa/tests/test_smartdevice.py b/kasa/tests/test_smartdevice.py index 92cca5a1..fdd342ca 100644 --- a/kasa/tests/test_smartdevice.py +++ b/kasa/tests/test_smartdevice.py @@ -198,7 +198,7 @@ async def test_mac(dev): async def test_representation(dev): import re - pattern = re.compile("<.* model .* at .* (.*), is_on: .* - dev specific: .*>") + pattern = re.compile("") assert pattern.match(str(dev))