Use debug/warning instead of info log level in components [p] (#126139)
This commit is contained in:
parent
bc8929d37f
commit
4efa147a2b
6 changed files with 12 additions and 12 deletions
|
@ -98,7 +98,7 @@ class PandoraMediaPlayer(MediaPlayerEntity):
|
|||
if self.state != MediaPlayerState.OFF:
|
||||
return
|
||||
self._pianobar = pexpect.spawn("pianobar")
|
||||
_LOGGER.info("Started pianobar subprocess")
|
||||
_LOGGER.debug("Started pianobar subprocess")
|
||||
mode = self._pianobar.expect(
|
||||
["Receiving new playlist", "Select station:", "Email:"]
|
||||
)
|
||||
|
@ -126,7 +126,7 @@ class PandoraMediaPlayer(MediaPlayerEntity):
|
|||
def turn_off(self) -> None:
|
||||
"""Turn the media player off."""
|
||||
if self._pianobar is None:
|
||||
_LOGGER.info("Pianobar subprocess already stopped")
|
||||
_LOGGER.warning("Pianobar subprocess already stopped")
|
||||
return
|
||||
self._pianobar.send("q")
|
||||
try:
|
||||
|
@ -212,7 +212,7 @@ class PandoraMediaPlayer(MediaPlayerEntity):
|
|||
]
|
||||
)
|
||||
except pexpect.exceptions.EOF:
|
||||
_LOGGER.info("Pianobar process already exited")
|
||||
_LOGGER.warning("Pianobar process already exited")
|
||||
return None
|
||||
|
||||
self._log_match()
|
||||
|
@ -289,7 +289,7 @@ class PandoraMediaPlayer(MediaPlayerEntity):
|
|||
command = CMD_MAP.get(service_cmd)
|
||||
_LOGGER.debug("Sending pinaobar command %s for %s", command, service_cmd)
|
||||
if command is None:
|
||||
_LOGGER.info("Command %s not supported yet", service_cmd)
|
||||
_LOGGER.warning("Command %s not supported yet", service_cmd)
|
||||
self._clear_buffer()
|
||||
self._pianobar.sendline(command)
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ async def async_setup_webhook(hass: HomeAssistant, entry: ConfigEntry, session):
|
|||
if CONF_WEBHOOK_ID not in entry.data:
|
||||
webhook_id = webhook.async_generate_id()
|
||||
webhook_url = webhook.async_generate_url(hass, webhook_id)
|
||||
_LOGGER.info("Registering new webhook at: %s", webhook_url)
|
||||
_LOGGER.debug("Registering new webhook at: %s", webhook_url)
|
||||
|
||||
hass.config_entries.async_update_entry(
|
||||
entry,
|
||||
|
|
|
@ -162,7 +162,7 @@ class PointFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
_LOGGER.error("Authentication Error")
|
||||
return self.async_abort(reason="auth_error")
|
||||
|
||||
_LOGGER.info("Successfully authenticated Point")
|
||||
_LOGGER.debug("Successfully authenticated Point")
|
||||
user_email = (await point_session.user()).get("email") or ""
|
||||
|
||||
return self.async_create_entry(
|
||||
|
|
|
@ -111,7 +111,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
device[CONF_REGION] = country
|
||||
version = 2
|
||||
config_entries.async_update_entry(entry, data=data, version=2)
|
||||
_LOGGER.info(
|
||||
_LOGGER.debug(
|
||||
"PlayStation 4 Config Updated: Region changed to: %s",
|
||||
country,
|
||||
)
|
||||
|
@ -143,7 +143,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
config_entry=entry,
|
||||
device_id=e_entry.device_id,
|
||||
)
|
||||
_LOGGER.info(
|
||||
_LOGGER.debug(
|
||||
"PlayStation 4 identifier for entity: %s has changed",
|
||||
entity_id,
|
||||
)
|
||||
|
|
|
@ -118,7 +118,7 @@ class PS4Device(MediaPlayerEntity):
|
|||
"""Display logger msg if region is deprecated."""
|
||||
# Non-Breaking although data returned may be inaccurate.
|
||||
if self._region in deprecated_regions:
|
||||
_LOGGER.info(
|
||||
_LOGGER.warning(
|
||||
"""Region: %s has been deprecated.
|
||||
Please remove PS4 integration
|
||||
and Re-configure again to utilize
|
||||
|
@ -340,7 +340,7 @@ class PS4Device(MediaPlayerEntity):
|
|||
"""Set device info for registry."""
|
||||
# If cannot get status on startup, assume info from registry.
|
||||
if status is None:
|
||||
_LOGGER.info("Assuming status from registry")
|
||||
_LOGGER.debug("Assuming status from registry")
|
||||
e_registry = er.async_get(self.hass)
|
||||
d_registry = dr.async_get(self.hass)
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ class PushBulletNotificationService(BaseNotificationService):
|
|||
# This also seems to work to send to all devices in own account.
|
||||
if ttype == "email":
|
||||
self._push_data(message, title, data, self.pushbullet, email=tname)
|
||||
_LOGGER.info("Sent notification to email %s", tname)
|
||||
_LOGGER.debug("Sent notification to email %s", tname)
|
||||
continue
|
||||
|
||||
# Target is sms, send directly, don't use a target object.
|
||||
|
@ -100,7 +100,7 @@ class PushBulletNotificationService(BaseNotificationService):
|
|||
self._push_data(
|
||||
message, title, data, self.pushbullet, phonenumber=tname
|
||||
)
|
||||
_LOGGER.info("Sent sms notification to %s", tname)
|
||||
_LOGGER.debug("Sent sms notification to %s", tname)
|
||||
continue
|
||||
|
||||
if ttype not in self.pbtargets:
|
||||
|
|
Loading…
Add table
Reference in a new issue