From 16aa4c54ecf28c2a240929dc40310457d9193628 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 20 Jun 2023 22:59:13 +0200 Subject: [PATCH] Correct calls to super class in ZHADeviceScannerEntity (#94924) --- homeassistant/components/zha/device_tracker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zha/device_tracker.py b/homeassistant/components/zha/device_tracker.py index d473eadeebe..885cd788f70 100644 --- a/homeassistant/components/zha/device_tracker.py +++ b/homeassistant/components/zha/device_tracker.py @@ -118,10 +118,12 @@ class ZHADeviceScannerEntity(ScannerEntity, ZhaEntity): # We opt ZHA device tracker back into overriding this method because # it doesn't track IP-based devices. # Call Super because ScannerEntity overrode it. - return super(ZhaEntity, self).device_info + # mypy doesn't know about fget: https://github.com/python/mypy/issues/6185 + return ZhaEntity.device_info.fget(self) # type: ignore[attr-defined] @property def unique_id(self) -> str: """Return unique ID.""" # Call Super because ScannerEntity overrode it. - return super(ZhaEntity, self).unique_id + # mypy doesn't know about fget: https://github.com/python/mypy/issues/6185 + return ZhaEntity.unique_id.fget(self) # type: ignore[attr-defined]