diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e7784f..062529f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: "Validation And Formatting" +name: "Hassfest and hacs validation" on: push: pull_request: @@ -10,23 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Download repo - with: - fetch-depth: 0 - - uses: actions/setup-python@v2 - name: Setup Python - with: - python-version: '3.8.x' - - uses: actions/cache@v2 - name: Cache - with: - path: | - ~/.cache/pip - key: custom-component-ci + - uses: home-assistant/actions/hassfest@master - uses: hacs/action@main with: - CATEGORY: integration - - uses: KTibow/ha-blueprint@stable - name: CI - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + category: integration diff --git a/README.md b/README.md index 3eb8bfd..c365347 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # Xiaomi Smart WiFi Sockets and Power Strips +![GitHub actions](https://github.com/syssi/xiaomiplug/actions/workflows/ci.yaml/badge.svg) +![GitHub stars](https://img.shields.io/github/stars/syssi/xiaomiplug) +![GitHub forks](https://img.shields.io/github/forks/syssi/xiaomiplug) +![GitHub watchers](https://img.shields.io/github/watchers/syssi/xiaomiplug) +[!["Buy Me A Coffee"](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://www.buymeacoffee.com/syssi) + This is a custom component for Home Assistant to integrate the Xiaomi Smart WiFi Socket (called Plug), Xiaomi Smart Power Strip and Xiaomi Chuangmi Plug V1. Please follow the instructions on [Retrieving the Access Token](https://home-assistant.io/components/xiaomi/#retrieving-the-access-token) to get the API token to use in the configuration.yaml file. diff --git a/custom_components/xiaomi_miio_plug/manifest.json b/custom_components/xiaomi_miio_plug/manifest.json index 8462b6a..acc3413 100644 --- a/custom_components/xiaomi_miio_plug/manifest.json +++ b/custom_components/xiaomi_miio_plug/manifest.json @@ -2,12 +2,13 @@ "domain": "xiaomi_miio_plug", "name": "Xiaomi Mi Smart WiFi Socket", "config_flow": false, - "version": "1.4.2", + "version": "1.4.3", + "iot_class": "local_polling", "documentation": "https://github.com/syssi/xiaomiplug", "issue_tracker": "https://github.com/syssi/xiaomiplug/issues", "requirements": [ "construct==2.10.56", - "python-miio>=0.5.5" + "python-miio>=0.5.7" ], "dependencies": [], "codeowners": [