diff --git a/custom_components/ocpp/button.py b/custom_components/ocpp/button.py index cc60bd71..f3b17efe 100644 --- a/custom_components/ocpp/button.py +++ b/custom_components/ocpp/button.py @@ -79,7 +79,6 @@ def __init__( self._attr_name = self.entity_description.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self.cp_id)}, - via_device=(DOMAIN, self.central_system.id), ) @property diff --git a/custom_components/ocpp/number.py b/custom_components/ocpp/number.py index d2aa6ef5..0f17ec01 100644 --- a/custom_components/ocpp/number.py +++ b/custom_components/ocpp/number.py @@ -93,7 +93,6 @@ def __init__( self._attr_name = self.entity_description.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self.cp_id)}, - via_device=(DOMAIN, self.central_system.id), ) self._attr_native_value = self.entity_description.initial_value self._attr_should_poll = False diff --git a/custom_components/ocpp/sensor.py b/custom_components/ocpp/sensor.py index f4299a58..14a04c42 100644 --- a/custom_components/ocpp/sensor.py +++ b/custom_components/ocpp/sensor.py @@ -104,7 +104,6 @@ def __init__( self._attr_name = self.entity_description.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self.cp_id)}, - via_device=(DOMAIN, self.central_system.id), ) self._attr_icon = ICON self._attr_native_unit_of_measurement = None diff --git a/custom_components/ocpp/switch.py b/custom_components/ocpp/switch.py index fb486896..5a33450b 100644 --- a/custom_components/ocpp/switch.py +++ b/custom_components/ocpp/switch.py @@ -98,7 +98,6 @@ def __init__( self._attr_name = self.entity_description.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self.cp_id)}, - via_device=(DOMAIN, self.central_system.id), ) @property