Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä 2023-08-19 15:17:17 +03:00 committed by GitHub
parent f318063a77
commit 3094991236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 109 additions and 119 deletions

View file

@ -115,8 +115,8 @@ class WorldTidesInfoSensor(SensorEntity):
start = int(time.time())
resource = (
"https://www.worldtides.info/api?extremes&length=86400"
"&key={}&lat={}&lon={}&start={}"
).format(self._key, self._lat, self._lon, start)
f"&key={self._key}&lat={self._lat}&lon={self._lon}&start={start}"
)
try:
self.data = requests.get(resource, timeout=10).json()