From 66221267eafa6f24a4ed04613ec530e882945d81 Mon Sep 17 00:00:00 2001 From: droans <49721649+droans@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:11:16 -0400 Subject: [PATCH 1/2] Remove default name --- custom_components/babybuddy/sensor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/babybuddy/sensor.py b/custom_components/babybuddy/sensor.py index da518fe..17d55e7 100644 --- a/custom_components/babybuddy/sensor.py +++ b/custom_components/babybuddy/sensor.py @@ -203,7 +203,6 @@ def __init__(self, coordinator: BabyBuddyCoordinator, child: dict) -> None: self.child = child self._attr_device_info = { "configuration_url": f"{coordinator.config_entry.data[CONF_HOST]}:{coordinator.config_entry.data[CONF_PORT]}{coordinator.config_entry.data[CONF_PATH]}/children/{child[ATTR_SLUG]}/dashboard/", - "default_name": f"Baby {child[ATTR_FIRST_NAME]} {child[ATTR_LAST_NAME]}", "identifiers": {(DOMAIN, child[ATTR_ID])}, } From 22520dc9e51ac813436944cff5daaee120bb680a Mon Sep 17 00:00:00 2001 From: droans <49721649+droans@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:30:22 -0400 Subject: [PATCH 2/2] Update switch.py --- custom_components/babybuddy/switch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/babybuddy/switch.py b/custom_components/babybuddy/switch.py index 02b1da2..5a13f85 100644 --- a/custom_components/babybuddy/switch.py +++ b/custom_components/babybuddy/switch.py @@ -148,7 +148,6 @@ def __init__( self._attr_icon = "mdi:timer-sand" self._attr_device_info = { "identifiers": {(DOMAIN, child[ATTR_ID])}, - "default_name": f"{child[ATTR_FIRST_NAME]} {child[ATTR_LAST_NAME]}", } @property