Skip to content

Commit

Permalink
Merge pull request #6 from dmamontov/version/2.0.0
Browse files Browse the repository at this point in the history
Upgrade HASS version
  • Loading branch information
dmamontov authored Mar 14, 2023
2 parents 6c9ccc7 + 0a09bd7 commit ffb24d1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion custom_components/seafile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def async_start(with_sleep: bool = False) -> None:
if with_sleep:
await asyncio.sleep(DEFAULT_SLEEP)

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
hass.http.register_view(ThumbnailProxyView(hass))

if is_new:
Expand Down
1 change: 1 addition & 0 deletions custom_components/seafile/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def async_setup_entry(
async_add_entities(entities)


# pylint: disable=too-many-ancestors
class SeafileBinarySensor(SeafileEntity, BinarySensorEntity):
"""Seafile binary sensor entry."""

Expand Down
1 change: 0 additions & 1 deletion custom_components/seafile/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ async def request(
self._debug("Successful request", _url, response.content, path)

if string_response and response.status_code < 400:

try:
return response.content.decode("utf-8")
except UnicodeDecodeError:
Expand Down
20 changes: 13 additions & 7 deletions custom_components/seafile/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"domain": "seafile",
"name": "Seafile",
"version": "1.1.0",
"after_dependencies": [
"ffmpeg"
],
"codeowners": [
"@dmamontov"
],
"config_flow": true,
"dependencies": [
"http"
],
"documentation": "https://github.com/dmamontov/hass-seafile/wiki",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/dmamontov/hass-seafile/issues",
"config_flow": true,
"quality_scale": "platinum",
"requirements": [],
"dependencies": ["http"],
"after_dependencies": ["ffmpeg"],
"codeowners": ["@dmamontov"],
"iot_class": "local_polling",
"quality_scale": "platinum"
"version": "2.0.0"
}
1 change: 1 addition & 0 deletions custom_components/seafile/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def add_sensor(entity: SeafileEntityDescription) -> None:
)


# pylint: disable=too-many-ancestors
class SeafileSensor(SeafileEntity, SensorEntity):
"""Seafile sensor entry."""

Expand Down
2 changes: 1 addition & 1 deletion custom_components/seafile/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
_LOGGER = logging.getLogger(__name__)


# pylint: disable=too-many-branches,too-many-lines,too-many-arguments
# pylint: disable=too-many-branches,too-many-lines,too-many-arguments,too-many-ancestors
class SeafileUpdater(DataUpdateCoordinator):
"""Seafile data updater for interaction with Seafile API."""

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Seafile",
"render_readme": true,
"homeassistant": "2022.4.0"
"homeassistant": "2023.3.0"
}

0 comments on commit ffb24d1

Please sign in to comment.