From 09c16408391f670aa5cb3f6be35ad9e50245786a Mon Sep 17 00:00:00 2001 From: samuelspagl Date: Tue, 12 Mar 2024 14:05:35 +0100 Subject: [PATCH] Remove unnecessary logging statements and change others to `debug` --- CHANGELOG.md | 2 ++ custom_components/samsung_soundbar/config_flow.py | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a7a0bc..89b48de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,11 @@ ### Changed +- Updated the GitHub actions workflows - Change "magic numbers" to `MediaPlayerEntityFeature` object For more information see https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation - the `source` now returns the value `wifi` when the `media_app_name` is `AirPlay` or `Spotify` +- removed some unnecessary logging statements, and changed others to `debug` ## [0.2.1] Chore: Format repository - 2024-02-08 diff --git a/custom_components/samsung_soundbar/config_flow.py b/custom_components/samsung_soundbar/config_flow.py index c7229e5..f8207ec 100644 --- a/custom_components/samsung_soundbar/config_flow.py +++ b/custom_components/samsung_soundbar/config_flow.py @@ -22,18 +22,15 @@ async def validate_input(api, device_id: str): class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): async def async_step_user(self, user_input=None): - _LOGGER.error(f"Example Flow starts with user_input {user_input}") if user_input is not None: - _LOGGER.error(f"User Input is not filled") try: session = async_get_clientsession(self.hass) api = pysmartthings.SmartThings( session, user_input.get(CONF_ENTRY_API_KEY) ) - _LOGGER.error(f"Validating Input {user_input}") device = await validate_input(api, user_input.get(CONF_ENTRY_DEVICE_ID)) - _LOGGER.error( + _LOGGER.debug( f"Successfully validated Input, Creating entry with title {DOMAIN} and data {user_input}" ) return self.async_create_entry(title=DOMAIN, data=user_input)