Просмотр исходного кода

Further tweaks for Custom Updater compatibility

Nik Rolls 6 лет назад
Родитель
Сommit
879b565d5f

+ 9 - 12
README.md

@@ -34,17 +34,14 @@ Work is in progress to support Goldair WiFi dehumidifiers.
 
 Installation
 ------------
-The preferred installation method is via [custom_updater](https://github.com/custom-components/custom_updater):
-```yaml
-custom_updater:
-  track:
-    - components
-  component_urls:
-    - https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components.json
-
+The preferred installation method is via [Custom Updater](https://github.com/custom-components/custom_updater). Once 
+you have Custom Updater set up, simply go to the dev-service page 
+![The dev-services icon](https://www.home-assistant.io/images/screenshots/developer-tool-services-icon.png | width=50)
+and call the `custom_updater.install` service with this service data:
+```json
+{ "element": "goldair_climate" }
 ```
-Alternatively you can copy the contents of this repository's `goldair_climate` directory to your
-config directory. 
+Alternatively you can copy the contents of this repository's `custom_components` directory to your config directory.
 
 Configuration
 -------------
@@ -77,8 +74,8 @@ goldair_climate:
 
 #### type
     *(string) (Required)* The type of Goldair device. Currently `heater` is the only option; a 
-future update will add support for dehumidifiers, so setting the type now will prevent the component breaking when this
-functionality is released.
+                                              future update will add support for dehumidifiers, so setting the type now 
+                                              will prevent the component breaking when this functionality is released.
 
 #### climate
     *(boolean) (Optional)* Whether to surface this heater as a climate device.

+ 6 - 6
custom_components.json

@@ -1,15 +1,15 @@
 {
     "goldair_climate": {
-        "version": "0.0.1",
+        "version": "0.0.2",
         "local_location": "/custom_components/goldair_climate/__init__.py",
-        "remote_location": "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/goldair_climate/__init__.py",
+        "remote_location": "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components/goldair_climate/__init__.py",
         "visit_repo": "https://github.com/nikrolls/homeassistant-goldair-climate",
         "changelog": "https://github.com/nikrolls/homeassistant-goldair-climate/releases/latest",
         "resources": [
-            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/goldair_climate/climate.py",
-            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/goldair_climate/light.py",
-            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/goldair_climate/lock.py",
-            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/goldair_climate/sensor.py"
+            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components/goldair_climate/climate.py",
+            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components/goldair_climate/light.py",
+            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components/goldair_climate/lock.py",
+            "https://raw.githubusercontent.com/nikrolls/homeassistant-goldair-climate/master/custom_components/goldair_climate/sensor.py"
         ]
     }
 }

+ 1 - 1
goldair_climate/__init__.py → custom_components/goldair_climate/__init__.py

@@ -16,7 +16,7 @@ from homeassistant.const import (CONF_NAME, CONF_HOST, ATTR_TEMPERATURE, TEMP_CE
 from homeassistant.components.climate import ATTR_OPERATION_MODE
 from homeassistant.helpers.discovery import load_platform
 
-VERSION = '0.0.1'
+VERSION = '0.0.2'
 REQUIREMENTS = ['pytuya==7.0']
 
 _LOGGER = logging.getLogger(__name__)

+ 0 - 0
goldair_climate/climate.py → custom_components/goldair_climate/climate.py


+ 0 - 0
goldair_climate/light.py → custom_components/goldair_climate/light.py


+ 0 - 0
goldair_climate/lock.py → custom_components/goldair_climate/lock.py


+ 0 - 0
goldair_climate/sensor.py → custom_components/goldair_climate/sensor.py