Merge pull request #1400 from oven-lab/master

Code test changes and issue #1375, #1398
This commit is contained in:
rospogrigio
2023-05-24 11:11:05 +02:00
committed by GitHub
7 changed files with 31 additions and 37 deletions

View File

@@ -1,26 +0,0 @@
name: "Validation And Formatting"
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Download repo
with:
fetch-depth: 0
- uses: actions/setup-python@v2
name: Setup Python
- uses: actions/cache@v2
name: Cache
with:
path: |
~/.cache/pip
key: custom-component-ci
- uses: KTibow/ha-blueprint@stable
name: CI
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,6 +1,8 @@
name: Tox PR CI name: Tox PR CI
on: [pull_request] on:
pull_request:
workflow_dispatch:
jobs: jobs:
build: build:

20
.github/workflows/validate.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: HACS Validate
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
validate-hacs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
- name: Hassfest validation
uses: home-assistant/actions/hassfest@master

View File

@@ -740,7 +740,7 @@ class LocalTuyaOptionsFlowHandler(config_entries.OptionsFlow):
new_data = self.config_entry.data.copy() new_data = self.config_entry.data.copy()
entry_id = self.config_entry.entry_id entry_id = self.config_entry.entry_id
# removing entities from registry (they will be recreated) # removing entities from registry (they will be recreated)
ent_reg = await er.async_get_registry(self.hass) ent_reg = er.async_get(self.hass)
reg_entities = { reg_entities = {
ent.unique_id: ent.entity_id ent.unique_id: ent.entity_id
for ent in er.async_entries_for_config_entry(ent_reg, entry_id) for ent in er.async_entries_for_config_entry(ent_reg, entry_id)

View File

@@ -1,14 +1,14 @@
{ {
"domain": "localtuya", "domain": "localtuya",
"name": "LocalTuya integration", "name": "LocalTuya integration",
"version": "5.0.0",
"documentation": "https://github.com/rospogrigio/localtuya/",
"dependencies": [],
"codeowners": [ "codeowners": [
"@rospogrigio", "@postlund" "@rospogrigio", "@postlund"
], ],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/rospogrigio/localtuya/",
"iot_class": "local_push",
"issue_tracker": "https://github.com/rospogrigio/localtuya/issues", "issue_tracker": "https://github.com/rospogrigio/localtuya/issues",
"requirements": [], "requirements": [],
"config_flow": true, "version": "5.0.1"
"iot_class": "local_push"
} }

View File

@@ -1,6 +1,4 @@
{ {
"name": "Local Tuya", "name": "Local Tuya",
"domains": ["climate", "cover", "fan", "light", "number", "select", "sensor", "switch"], "homeassistant": "0.116.0"
"homeassistant": "0.116.0",
"iot_class": ["Local Push"]
} }

View File

@@ -10,7 +10,7 @@ python =
[testenv] [testenv]
passenv = TOXENV,CI passenv = TOXENV,CI
whitelist_externals = allowlist_externals =
true true
setenv = setenv =
LANG=en_US.UTF-8 LANG=en_US.UTF-8