Remove username entity from Geocaching (#71728)

pull/70760/head^2
Franck Nijhof 2022-05-12 13:14:33 +02:00 committed by GitHub
parent 577b8cd976
commit bf314970ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -11,7 +11,7 @@ from homeassistant.components.sensor import SensorEntity, SensorEntityDescriptio
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceEntryType from homeassistant.helpers.device_registry import DeviceEntryType
from homeassistant.helpers.entity import DeviceInfo, EntityCategory from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.update_coordinator import CoordinatorEntity from homeassistant.helpers.update_coordinator import CoordinatorEntity
@ -34,13 +34,6 @@ class GeocachingSensorEntityDescription(
SENSORS: tuple[GeocachingSensorEntityDescription, ...] = ( SENSORS: tuple[GeocachingSensorEntityDescription, ...] = (
GeocachingSensorEntityDescription(
key="username",
name="username",
icon="mdi:account",
entity_category=EntityCategory.DIAGNOSTIC,
value_fn=lambda status: status.user.username,
),
GeocachingSensorEntityDescription( GeocachingSensorEntityDescription(
key="find_count", key="find_count",
name="Total finds", name="Total finds",