diff --git a/homeassistant/components/buienradar/util.py b/homeassistant/components/buienradar/util.py index 3686e2bd3c9..06cd1b32cf5 100644 --- a/homeassistant/components/buienradar/util.py +++ b/homeassistant/components/buienradar/util.py @@ -115,7 +115,7 @@ class BrData: self.load_error_count += 1 threshold_log( self.load_error_count, - "Unable to retrieve json data from Buienradar" "(Msg: %s, status: %s,)", + "Unable to retrieve json data from Buienradar (Msg: %s, status: %s)", content.get(MESSAGE), content.get(STATUS_CODE), ) @@ -135,7 +135,7 @@ class BrData: # unable to get the data threshold_log( self.rain_error_count, - "Unable to retrieve rain data from Buienradar" "(Msg: %s, status: %s)", + "Unable to retrieve rain data from Buienradar (Msg: %s, status: %s)", raincontent.get(MESSAGE), raincontent.get(STATUS_CODE), ) diff --git a/homeassistant/components/doorbird/__init__.py b/homeassistant/components/doorbird/__init__.py index 8a2c06c7157..133c7612a89 100644 --- a/homeassistant/components/doorbird/__init__.py +++ b/homeassistant/components/doorbird/__init__.py @@ -287,7 +287,7 @@ class ConfiguredDoorBird: self.device.change_favorite("http", f"Home Assistant ({event})", url) if not self.webhook_is_registered(url): _LOGGER.warning( - 'Unable to set favorite URL "%s". ' 'Event "%s" will not fire', + 'Unable to set favorite URL "%s". Event "%s" will not fire', url, event, ) diff --git a/homeassistant/components/owntracks/messages.py b/homeassistant/components/owntracks/messages.py index b85a37dadf9..4f17c8a5375 100644 --- a/homeassistant/components/owntracks/messages.py +++ b/homeassistant/components/owntracks/messages.py @@ -159,7 +159,7 @@ def encrypt_message(secret, topic, message): if key is None: _LOGGER.warning( - "Unable to encrypt payload because no decryption key known " "for topic %s", + "Unable to encrypt payload because no decryption key known for topic %s", topic, ) return None diff --git a/homeassistant/components/smtp/notify.py b/homeassistant/components/smtp/notify.py index ef743912bc9..7b8e2dad1ed 100644 --- a/homeassistant/components/smtp/notify.py +++ b/homeassistant/components/smtp/notify.py @@ -235,7 +235,7 @@ def _attach_file(atch_name, content_id): attachment = MIMEImage(file_bytes) except TypeError: _LOGGER.warning( - "Attachment %s has an unknown MIME type. " "Falling back to file", + "Attachment %s has an unknown MIME type. Falling back to file", atch_name, ) attachment = MIMEApplication(file_bytes, Name=atch_name) diff --git a/homeassistant/components/template/cover.py b/homeassistant/components/template/cover.py index e1df61bf4a2..7a20398d0b7 100644 --- a/homeassistant/components/template/cover.py +++ b/homeassistant/components/template/cover.py @@ -242,7 +242,7 @@ class CoverTemplate(TemplateEntity, CoverEntity): if state < 0 or state > 100: self._position = None _LOGGER.error( - "Cover position value must be" " between 0 and 100." " Value was: %.2f", + "Cover position value must be between 0 and 100. Value was: %.2f", state, ) else: diff --git a/homeassistant/components/vasttrafik/sensor.py b/homeassistant/components/vasttrafik/sensor.py index 5e446106312..bec7959f9c8 100644 --- a/homeassistant/components/vasttrafik/sensor.py +++ b/homeassistant/components/vasttrafik/sensor.py @@ -139,7 +139,7 @@ class VasttrafikDepartureSensor(SensorEntity): if not self._departureboard: _LOGGER.debug( - "No departures from departure station %s " "to destination station %s", + "No departures from departure station %s to destination station %s", self._departure["station_name"], self._heading["station_name"] if self._heading else "ANY", ) diff --git a/homeassistant/components/zwave_js/services.py b/homeassistant/components/zwave_js/services.py index 70099859d39..8577e48e7a3 100644 --- a/homeassistant/components/zwave_js/services.py +++ b/homeassistant/components/zwave_js/services.py @@ -540,7 +540,6 @@ class ZWaveServices: async def async_ping(self, service: ServiceCall) -> None: """Ping node(s).""" - # pylint: disable=no-self-use _LOGGER.warning( "This service is deprecated in favor of the ping button entity. Service " "calls will still work for now but the service will be removed in a " diff --git a/requirements_test.txt b/requirements_test.txt index 744ca7bebcf..0ef6063a1ca 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -13,7 +13,7 @@ freezegun==1.2.1 mock-open==1.4.0 mypy==0.950 pre-commit==2.17.0 -pylint==2.13.7 +pylint==2.13.8 pipdeptree==2.2.1 pylint-strict-informational==0.1 pytest-aiohttp==0.3.0