Remove unnecessary logging statements and change others to `debug`
This commit is contained in:
parent
88034c5531
commit
09c1640839
|
@ -8,9 +8,11 @@
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Updated the GitHub actions workflows
|
||||||
- Change "magic numbers" to `MediaPlayerEntityFeature` object
|
- Change "magic numbers" to `MediaPlayerEntityFeature` object
|
||||||
For more information see https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
|
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`
|
- 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
|
## [0.2.1] Chore: Format repository - 2024-02-08
|
||||||
|
|
||||||
|
|
|
@ -22,18 +22,15 @@ async def validate_input(api, device_id: str):
|
||||||
|
|
||||||
class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
async def async_step_user(self, user_input=None):
|
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:
|
if user_input is not None:
|
||||||
_LOGGER.error(f"User Input is not filled")
|
|
||||||
try:
|
try:
|
||||||
session = async_get_clientsession(self.hass)
|
session = async_get_clientsession(self.hass)
|
||||||
api = pysmartthings.SmartThings(
|
api = pysmartthings.SmartThings(
|
||||||
session, user_input.get(CONF_ENTRY_API_KEY)
|
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))
|
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}"
|
f"Successfully validated Input, Creating entry with title {DOMAIN} and data {user_input}"
|
||||||
)
|
)
|
||||||
return self.async_create_entry(title=DOMAIN, data=user_input)
|
return self.async_create_entry(title=DOMAIN, data=user_input)
|
||||||
|
|
Loading…
Reference in New Issue