Remove redundant source_type property from ScannerEntities (#126716)
This commit is contained in:
parent
a3c2a7e1e0
commit
b48c439bff
13 changed files with 9 additions and 78 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue