From 3ebaf4d1b501ffe457b9427cb363cac08954126a Mon Sep 17 00:00:00 2001 From: Tobias Feijten Date: Tue, 8 Sep 2026 20:56:41 +0200 Subject: [PATCH] Remove deprecated via_device constant as suggested by Dosu --- custom_components/stromer/entity.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/stromer/entity.py b/custom_components/stromer/entity.py index 8c6e792..211fd87 100644 --- a/custom_components/stromer/entity.py +++ b/custom_components/stromer/entity.py @@ -3,7 +3,7 @@ from typing import Any -from homeassistant.const import ATTR_NAME, ATTR_VIA_DEVICE +from homeassistant.const import ATTR_NAME from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -40,7 +40,6 @@ def __init__( self._attr_device_info.update( { ATTR_NAME: data.get("bike_name"), - ATTR_VIA_DEVICE: None, } )