Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code changes and fix issue #1375 #1397

Closed
wants to merge 17 commits into from
26 changes: 0 additions & 26 deletions .github/workflows/combined.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Tox PR CI

on: [pull_request]
on:
pull_request:
workflow_dispatch:

jobs:
build:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion custom_components/localtuya/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ async def async_step_configure_entity(self, user_input=None):
new_data = self.config_entry.data.copy()
entry_id = self.config_entry.entry_id
# 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 = {
ent.unique_id: ent.entity_id
for ent in er.async_entries_for_config_entry(ent_reg, entry_id)
Expand Down
14 changes: 7 additions & 7 deletions custom_components/localtuya/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"domain": "localtuya",
"name": "LocalTuya integration",
"version": "5.0.0",
"documentation": "https://github.com/rospogrigio/localtuya/",
"dependencies": [],
"codeowners": [
"@rospogrigio", "@postlund"
"@rospogrigio", "@postlund", "@oven-lab"
],
"issue_tracker": "https://github.com/rospogrigio/localtuya/issues",
"requirements": [],
"config_flow": true,
"iot_class": "local_push"
"dependencies": [],
"documentation": "https://github.com/oven-lab/localtuya/",
"iot_class": "local_push",
"issue_tracker": "https://github.com/oven-lab/localtuya/issues",
"requirements": [],
"version": "5.1.1"
}
4 changes: 1 addition & 3 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"name": "Local Tuya",
"domains": ["climate", "cover", "fan", "light", "number", "select", "sensor", "switch"],
"homeassistant": "0.116.0",
"iot_class": ["Local Push"]
"homeassistant": "0.116.0"
}
4 changes: 2 additions & 2 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![](https://img.shields.io/github/release/rospogrigio/localtuya-homeassistant/all.svg?style=for-the-badge)](https://github.com/rospogrigio/localtuya-homeassistant/releases)
[![](https://img.shields.io/github/release/oven-lab/localtuya/all.svg?style=for-the-badge)](https://github.com/oven-lab/localtuya/releases)
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)
[![](https://img.shields.io/badge/MAINTAINER-%40rospogrigio-green?style=for-the-badge)](https://github.com/rospogrigio)

![logo](https://github.com/rospogrigio/localtuya-homeassistant/blob/master/img/logo-small.png)
![logo](https://github.com/oven-lab/localtuya/blob/master/img/logo-small.png)

A Home Assistant custom Integration for local handling of Tuya-based devices.

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python =

[testenv]
passenv = TOXENV,CI
whitelist_externals =
allowlist_externals =
true
setenv =
LANG=en_US.UTF-8
Expand Down