Add sensors, renamed repo
parent
5682149ecc
commit
9d8b17b2cf
@ -0,0 +1,17 @@
|
||||
name: HACS Action
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
hacs:
|
||||
name: HACS Action
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: HACS Action
|
||||
uses: "hacs/action@main"
|
||||
with:
|
||||
category: "integration"
|
@ -0,0 +1,14 @@
|
||||
name: Validate with hassfest
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v3"
|
||||
- uses: "home-assistant/actions/hassfest@master"
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"domain": "hon",
|
||||
"name": "hOn",
|
||||
"config_flow": true,
|
||||
"version": "0.1.0",
|
||||
"codeowners": ["@Andre0512"],
|
||||
"iot_class": "cloud_polling",
|
||||
"requirements": ["pyhOn==0.2.4"],
|
||||
"documentation": "https://github.com/Andre0512/hOn/"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DOMAIN = "hon"
|
||||
DOMAIN = "haier"
|
||||
|
||||
PLATFORMS = [
|
||||
"sensor",
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"domain": "haier",
|
||||
"name": "Haier hOn",
|
||||
"codeowners": ["@Andre0512"],
|
||||
"config_flow": true,
|
||||
"documentation": "https://github.com/Andre0512/haier/",
|
||||
"iot_class": "cloud_polling",
|
||||
"issue_tracker": "https://github.com/Andre0512/haier/issues",
|
||||
"requirements": ["pyhOn==0.2.4"],
|
||||
"version": "0.1.1"
|
||||
}
|
@ -1,13 +1,11 @@
|
||||
from collections.abc import Callable, Coroutine
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
from pyhon import HonConnection
|
||||
from pyhon.device import HonDevice
|
||||
|
||||
from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EntityCategory
|
||||
from pyhon import HonConnection
|
||||
from pyhon.device import HonDevice
|
||||
|
||||
from .const import DOMAIN
|
||||
from .hon import HonCoordinator, HonEntity
|
Loading…
Reference in New Issue