Skip to content

Commit

Permalink
remove via device from platforms (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Jan 12, 2025
1 parent 883aea8 commit 6e5a419
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion custom_components/ocpp/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/ocpp/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/ocpp/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/ocpp/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e5a419

Please sign in to comment.