Skip to content

Commit 75d1c34

Browse files
Merge pull request #79 from robbinjanssen/dev
Release v2.1.0
2 parents 7b3226b + ea2c2c6 commit 75d1c34

5 files changed

Lines changed: 49 additions & 8 deletions

File tree

.github/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
description: "There has not been activity on this issue or PR for quite some time."
3939
- name: "no-stale"
4040
color: fef2c0
41-
description: "This issue or PR is exempted from the stable bot."
41+
description: "This issue or PR is exempted from the stale bot."
4242

4343
- name: "security"
4444
color: ee0701

.github/workflows/stale.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Stale
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
schedule:
7+
- cron: "0 8 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
stale:
12+
name: 🧹 Clean up stale issues and PRs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: 🚀 Run stale
16+
uses: actions/stale@v4
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
days-before-stale: 14
20+
days-before-close: 7
21+
remove-stale-when-updated: true
22+
stale-issue-label: "stale"
23+
exempt-issue-labels: "no-stale,help-wanted"
24+
stale-issue-message: >
25+
There hasn't been any activity on this issue recently, so we
26+
clean up some of the older and inactive issues.
27+
28+
Please make sure to update to the latest version and
29+
check if that solves the issue. Let us know if that works for you
30+
by leaving a comment 👍
31+
32+
This issue has now been marked as stale and will be closed if no
33+
further activity occurs. Thanks!
34+
stale-pr-label: "stale"
35+
exempt-pr-labels: "no-stale"
36+
stale-pr-message: >
37+
There hasn't been any activity on this pull request recently. This
38+
pull request has been automatically marked as stale because of that
39+
and will be closed if no further activity occurs within 7 days.
40+
Thank you for your contributions.

custom_components/omnik_inverter/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ def __init__(
104104
password=self.config_entry.data[CONF_PASSWORD],
105105
session=async_get_clientsession(hass),
106106
)
107-
self.omnikinverter = OmnikInverter(
108-
host=self.config_entry.data[CONF_HOST],
109-
source_type=self.config_entry.data[CONF_SOURCE_TYPE],
110-
session=async_get_clientsession(hass),
111-
)
107+
else:
108+
self.omnikinverter = OmnikInverter(
109+
host=self.config_entry.data[CONF_HOST],
110+
source_type=self.config_entry.data[CONF_SOURCE_TYPE],
111+
session=async_get_clientsession(hass),
112+
)
112113

113114
async def _async_update_data(self) -> OmnikInverterData:
114115
"""Fetch data from Omnik Inverter."""

custom_components/omnik_inverter/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"domain": "omnik_inverter",
33
"name": "Omnik Inverter",
44
"config_flow": true,
5-
"version": "2.0.0",
5+
"version": "2.1.0",
66
"documentation": "https://github.com/robbinjanssen/home-assistant-omnik-inverter",
77
"issue_tracker": "https://github.com/robbinjanssen/home-assistant-omnik-inverter/issues",
88
"codeowners": [

custom_components/omnik_inverter/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
}
4242
}
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)