diff --git a/homeassistant/components/heos/__init__.py b/homeassistant/components/heos/__init__.py index 20ed7930a4f..f7e1ce5bc58 100644 --- a/homeassistant/components/heos/__init__.py +++ b/homeassistant/components/heos/__init__.py @@ -87,9 +87,8 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry): favorites = await controller.get_favorites() else: _LOGGER.warning( - "%s is not logged in to a HEOS account and will be unable " - "to retrieve HEOS favorites: Use the 'heos.sign_in' service " - "to sign-in to a HEOS account", + "%s is not logged in to a HEOS account and will be unable to retrieve " + "HEOS favorites: Use the 'heos.sign_in' service to sign-in to a HEOS account", host, ) inputs = await controller.get_input_sources() @@ -312,7 +311,7 @@ class SourceManager: if retry_attempts < self.max_retry_attempts: retry_attempts += 1 _LOGGER.debug( - "Error retrieving sources and will " "retry: %s", error + "Error retrieving sources and will retry: %s", error ) await asyncio.sleep(self.retry_delay) else: diff --git a/tests/components/heos/test_init.py b/tests/components/heos/test_init.py index 7b2645cb8ec..cfbdcb9198a 100644 --- a/tests/components/heos/test_init.py +++ b/tests/components/heos/test_init.py @@ -108,9 +108,9 @@ async def test_async_setup_entry_not_signed_in_loads_platforms( assert hass.data[DOMAIN][DATA_SOURCE_MANAGER].favorites == {} assert hass.data[DOMAIN][DATA_SOURCE_MANAGER].inputs == input_sources assert ( - "127.0.0.1 is not logged in to a HEOS account and will be unable " - "to retrieve HEOS favorites: Use the 'heos.sign_in' service to " - "sign-in to a HEOS account" in caplog.text + "127.0.0.1 is not logged in to a HEOS account and will be unable to retrieve " + "HEOS favorites: Use the 'heos.sign_in' service to sign-in to a HEOS account" + in caplog.text )