Remove redundant source_type property from ScannerEntities (#126716)

This commit is contained in:
epenet 2024-09-25 08:58:54 +02:00 committed by GitHub
parent a3c2a7e1e0
commit b48c439bff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 9 additions and 78 deletions

View file

@ -4,7 +4,7 @@ from __future__ import annotations
import logging
from homeassistant.components.device_tracker import ScannerEntity, SourceType
from homeassistant.components.device_tracker import ScannerEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
@ -81,11 +81,6 @@ class NetgearScannerEntity(NetgearDeviceEntity, ScannerEntity):
"""Return true if the device is connected to the router."""
return self._active
@property
def source_type(self) -> SourceType:
"""Return the source type."""
return SourceType.ROUTER
@property
def ip_address(self) -> str:
"""Return the IP address."""