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