From 0ebf811075d3354bd03905ab0d9babfc9fd35b63 Mon Sep 17 00:00:00 2001 From: Hans Oischinger Date: Sat, 12 Aug 2023 13:24:34 +0200 Subject: [PATCH] Move DeviceInfo from entity to device registry From https://github.com/home-assistant/core/pull/98149 --- custom_components/vicare/binary_sensor.py | 2 +- custom_components/vicare/button.py | 2 +- custom_components/vicare/climate.py | 2 +- custom_components/vicare/sensor.py | 2 +- custom_components/vicare/water_heater.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/custom_components/vicare/binary_sensor.py b/custom_components/vicare/binary_sensor.py index ddcf1cf..4b4fd9d 100644 --- a/custom_components/vicare/binary_sensor.py +++ b/custom_components/vicare/binary_sensor.py @@ -20,7 +20,7 @@ ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant -from homeassistant.helpers.entity import DeviceInfo +from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import ViCareRequiredKeysMixin diff --git a/custom_components/vicare/button.py b/custom_components/vicare/button.py index 37279f8..509a175 100644 --- a/custom_components/vicare/button.py +++ b/custom_components/vicare/button.py @@ -17,7 +17,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant -from homeassistant.helpers.entity import DeviceInfo +from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import ViCareRequiredKeysMixinWithSet diff --git a/custom_components/vicare/climate.py b/custom_components/vicare/climate.py index 814348e..39e008b 100644 --- a/custom_components/vicare/climate.py +++ b/custom_components/vicare/climate.py @@ -33,7 +33,7 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_platform import homeassistant.helpers.config_validation as cv -from homeassistant.helpers.entity import DeviceInfo +from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import DOMAIN, VICARE_DEVICE_CONFIG, VICARE_NAME diff --git a/custom_components/vicare/sensor.py b/custom_components/vicare/sensor.py index 6e177a1..83f0968 100644 --- a/custom_components/vicare/sensor.py +++ b/custom_components/vicare/sensor.py @@ -31,7 +31,7 @@ UnitOfVolume, ) from homeassistant.core import HomeAssistant -from homeassistant.helpers.entity import DeviceInfo +from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import ViCareRequiredKeysMixin diff --git a/custom_components/vicare/water_heater.py b/custom_components/vicare/water_heater.py index 49169f1..486afaa 100644 --- a/custom_components/vicare/water_heater.py +++ b/custom_components/vicare/water_heater.py @@ -22,7 +22,7 @@ UnitOfTemperature, ) from homeassistant.core import HomeAssistant -from homeassistant.helpers.entity import DeviceInfo +from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import DOMAIN, VICARE_DEVICE_CONFIG, VICARE_NAME