From 6f7f4955a359e5c711d505366ca58f8ecb58435f Mon Sep 17 00:00:00 2001
From: Nathan Tilley <nathan@tilley.xyz>
Date: Wed, 17 Mar 2021 06:11:39 -0400
Subject: [PATCH] Add Logger Check Before Adding Another (#47954)

---
 script/setup | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/script/setup b/script/setup
index 46865ecfcb6..f827c3a373f 100755
--- a/script/setup
+++ b/script/setup
@@ -28,9 +28,11 @@ python3 -m pip install -e . --constraint homeassistant/package_constraints.txt
 
 hass --script ensure_config -c config
 
+if ! grep -R "logger" config/configuration.yaml >> /dev/null;then
 echo "
 logger:
   default: info
   logs:
     homeassistant.components.cloud: debug
 " >> config/configuration.yaml
+fi
\ No newline at end of file
-- 
GitLab