mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 20:57:51 +00:00
Update pylint to 2.13.8 (#71280)
This commit is contained in:
parent
ee8eac10c9
commit
6eef3c16f2
@ -115,7 +115,7 @@ class BrData:
|
|||||||
self.load_error_count += 1
|
self.load_error_count += 1
|
||||||
threshold_log(
|
threshold_log(
|
||||||
self.load_error_count,
|
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(MESSAGE),
|
||||||
content.get(STATUS_CODE),
|
content.get(STATUS_CODE),
|
||||||
)
|
)
|
||||||
@ -135,7 +135,7 @@ class BrData:
|
|||||||
# unable to get the data
|
# unable to get the data
|
||||||
threshold_log(
|
threshold_log(
|
||||||
self.rain_error_count,
|
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(MESSAGE),
|
||||||
raincontent.get(STATUS_CODE),
|
raincontent.get(STATUS_CODE),
|
||||||
)
|
)
|
||||||
|
@ -287,7 +287,7 @@ class ConfiguredDoorBird:
|
|||||||
self.device.change_favorite("http", f"Home Assistant ({event})", url)
|
self.device.change_favorite("http", f"Home Assistant ({event})", url)
|
||||||
if not self.webhook_is_registered(url):
|
if not self.webhook_is_registered(url):
|
||||||
_LOGGER.warning(
|
_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,
|
url,
|
||||||
event,
|
event,
|
||||||
)
|
)
|
||||||
|
@ -159,7 +159,7 @@ def encrypt_message(secret, topic, message):
|
|||||||
|
|
||||||
if key is None:
|
if key is None:
|
||||||
_LOGGER.warning(
|
_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,
|
topic,
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
@ -235,7 +235,7 @@ def _attach_file(atch_name, content_id):
|
|||||||
attachment = MIMEImage(file_bytes)
|
attachment = MIMEImage(file_bytes)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
_LOGGER.warning(
|
_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,
|
atch_name,
|
||||||
)
|
)
|
||||||
attachment = MIMEApplication(file_bytes, Name=atch_name)
|
attachment = MIMEApplication(file_bytes, Name=atch_name)
|
||||||
|
@ -242,7 +242,7 @@ class CoverTemplate(TemplateEntity, CoverEntity):
|
|||||||
if state < 0 or state > 100:
|
if state < 0 or state > 100:
|
||||||
self._position = None
|
self._position = None
|
||||||
_LOGGER.error(
|
_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,
|
state,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -139,7 +139,7 @@ class VasttrafikDepartureSensor(SensorEntity):
|
|||||||
|
|
||||||
if not self._departureboard:
|
if not self._departureboard:
|
||||||
_LOGGER.debug(
|
_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._departure["station_name"],
|
||||||
self._heading["station_name"] if self._heading else "ANY",
|
self._heading["station_name"] if self._heading else "ANY",
|
||||||
)
|
)
|
||||||
|
@ -540,7 +540,6 @@ class ZWaveServices:
|
|||||||
|
|
||||||
async def async_ping(self, service: ServiceCall) -> None:
|
async def async_ping(self, service: ServiceCall) -> None:
|
||||||
"""Ping node(s)."""
|
"""Ping node(s)."""
|
||||||
# pylint: disable=no-self-use
|
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"This service is deprecated in favor of the ping button entity. Service "
|
"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 "
|
"calls will still work for now but the service will be removed in a "
|
||||||
|
@ -13,7 +13,7 @@ freezegun==1.2.1
|
|||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy==0.950
|
mypy==0.950
|
||||||
pre-commit==2.17.0
|
pre-commit==2.17.0
|
||||||
pylint==2.13.7
|
pylint==2.13.8
|
||||||
pipdeptree==2.2.1
|
pipdeptree==2.2.1
|
||||||
pylint-strict-informational==0.1
|
pylint-strict-informational==0.1
|
||||||
pytest-aiohttp==0.3.0
|
pytest-aiohttp==0.3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user