Skip to content

Commit

Permalink
Merge pull request #18 from alandtse/dev
Browse files Browse the repository at this point in the history
chore: release 2023-06-26
  • Loading branch information
alandtse committed Jun 26, 2023
2 parents a5f55d0 + b5393d0 commit a47d6dc
Show file tree
Hide file tree
Showing 16 changed files with 2,375 additions and 1,483 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v1"
with:
python-version: "3.8"
python-version: "3.10"
- name: Install poetry
run: python3 -m pip install poetry
- name: Install requirements
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v1"
with:
python-version: "3.8"
python-version: "3.10"
- name: Install poetry
run: python3 -m pip install poetry
- name: Install requirements
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
# - name: Move new translations
# run: |
# cp /tmp/lokalise/locale/* /home/runner/work/alexa_media_player/alexa_media_player/custom_components/alexa_media/translations/
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ deps/deps.jl

# Only keep pr_custom_component and not downloaded components
/custom_components
!/custom_components/pr_custom_component
!/custom_components/pr_custom_component/*
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ custom_components/pr_custom_component/switch.py

If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)

_Component built with [integration_blueprint][integration_blueprint]._

## Logo

The [logo](images/pr_custom_component.svg) is a combination of the [Home Assistant logo](https://github.com/home-assistant/assets/blob/master/logo/logo.svg) available under [CC-BY-NC-SA-4.0](https://github.com/home-assistant/assets/blob/master/LICENSE.md) and the [Pull request icon](https://commons.wikimedia.org/wiki/File:Octicons-git-pull-request.svg) under [MIT](https://github.com/primer/octicons/blob/master/LICENSE). The combined logo is under [CC-BY-NC-SA-4.0](https://github.com/home-assistant/assets/blob/master/LICENSE.md)
The [logo](images/pr_custom_component.svg) is a modified [Pull request icon](https://commons.wikimedia.org/wiki/File:Octicons-git-pull-request.svg) under [MIT](https://github.com/primer/octicons/blob/master/LICENSE).

_Component built with [integration_blueprint][integration_blueprint]._

---

Expand Down
2 changes: 1 addition & 1 deletion custom_components/pr_custom_component/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ async def api_wrapper(
headers = self._headers if not headers else headers
data = data or {}
try:
async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()):
async with async_timeout.timeout(TIMEOUT):
if method == "get":
response = await self._session.get(url, headers=headers)
response_json = await response.json()
Expand Down
11 changes: 6 additions & 5 deletions custom_components/pr_custom_component/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"domain": "pr_custom_component",
"name": "PR Custom Component",
"codeowners": ["@alandtse"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/alandtse/pr_custom_component",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/alandtse/pr_custom_component/issues",
"dependencies": [],
"version": "0.2.0",
"config_flow": true,
"codeowners": ["@alandtse"],
"requirements": ["aiofiles~=0.6.0"]
"requirements": ["aiofiles>=0.6.0"],
"version": "0.2.0"
}
1 change: 0 additions & 1 deletion custom_components/pr_custom_component/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"config": {
"step": {
"user": {
"title": "PR Custom Component",
"description": "Please enter pending Pull Request link. After installation, you must restart Home Assistant to see the custom component.\n>**Warning: This will overwrite the existing custom component in your `/config/custom_components` directory.**",
"data": {
"pr_url": "Link to Home Assistant Pull Request"
Expand Down
1 change: 0 additions & 1 deletion custom_components/pr_custom_component/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"config": {
"step": {
"user": {
"title": "PR Custom Component",
"description": "Please enter pending Pull Request link. After installation, you must restart Home Assistant to see the custom component.\n>**Warning: This will overwrite the existing custom component in your `/config/custom_components` directory.**",
"data": {
"pr_url": "Link to Home Assistant Pull Request"
Expand Down
5 changes: 3 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "PR Custom Component",
"hacs": "1.6.0",
"domains": ["binary_sensor", "sensor", "switch"],
"iot_class": "Cloud Polling",
"content_in_root": false,
"zip_release": true,
"filename": "pr_custom_component.zip",
"homeassistant": "0.118.0"
}
Binary file modified images/icon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/icon@4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images/pr_custom_component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a47d6dc

Please sign in to comment.