Skip to content

Commit

Permalink
Update ruff and follow new recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
astrandb committed Aug 23, 2024
1 parent 528c747 commit f22359d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.6.2
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
files: ^((homeassistant|custom_components|pylint|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Current version has limited error detection and recovery and will therefore log

## Installation

Make sure you have the credentials available for your account with [Weatherlink cloud service](https://www.weatherlink.com). You will need API Token and API Secret when using API V2. For the legacy API V1 you will need the DID for your Davis weather station, your password and the API V1 access token.
Make sure you have the credentials available for your account with [Weatherlink cloud service](https://www.weatherlink.com). You will need API Token and API Secret when using API V2. For the legacy API V1 you will need the DID for your Davis weather station, your password and the API V1 access token.

If you have another weatherlink integration installed you must remove it before installing this one. You cannot have two different integrations with the same name in Home Assistant.

Expand Down
1 change: 1 addition & 0 deletions custom_components/weatherlink/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Weatherlink integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/weatherlink/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Diagnostics support for Weatherlink."""

from __future__ import annotations

from homeassistant.components.diagnostics import async_redact_data
Expand Down
1 change: 1 addition & 0 deletions custom_components/weatherlink/pyweatherlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Move to pypi.org when stable
"""

from dataclasses import dataclass
import logging
import urllib.parse
Expand Down

0 comments on commit f22359d

Please sign in to comment.