Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
parent
f318063a77
commit
3094991236
39 changed files with 109 additions and 119 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue