From b4949786a6bf0824b721004d9f9988c3627314c6 Mon Sep 17 00:00:00 2001 From: Sander Huisman Date: Mon, 18 Feb 2019 16:53:18 +0100 Subject: [PATCH 1/4] Adopted to HA's new platform style --- docker_monitor.py => docker_monitor/__init__.py | 0 sensor/docker_monitor.py => docker_monitor/sensor.py | 0 switch/docker_monitor.py => docker_monitor/switch.py | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename docker_monitor.py => docker_monitor/__init__.py (100%) rename sensor/docker_monitor.py => docker_monitor/sensor.py (100%) rename switch/docker_monitor.py => docker_monitor/switch.py (100%) diff --git a/docker_monitor.py b/docker_monitor/__init__.py similarity index 100% rename from docker_monitor.py rename to docker_monitor/__init__.py diff --git a/sensor/docker_monitor.py b/docker_monitor/sensor.py similarity index 100% rename from sensor/docker_monitor.py rename to docker_monitor/sensor.py diff --git a/switch/docker_monitor.py b/docker_monitor/switch.py similarity index 100% rename from switch/docker_monitor.py rename to docker_monitor/switch.py From c470e2d95999a3fadaf2802c0fcc367a8f651fb7 Mon Sep 17 00:00:00 2001 From: Sander Huisman Date: Thu, 21 Feb 2019 08:53:14 +0100 Subject: [PATCH 2/4] preparing to merge path changes into new version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a5b701..d0f2d8a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This repository contains custom components I developed for my own [Home-Assistan The Docker monitor allows you to monitor statistics and turn on/off containers. The monitor can connected to a daemon through the url parameter. When home assistant is used within a Docker container, the daemon can be mounted as follows `-v /var/run/docker.sock:/var/run/docker.sock`. The monitor is based on [Glances](https://github.com/nicolargo/glances) and [ha-dockermon](https://github.com/philhawthorne/ha-dockermon) and combines (in my opinion the best of both integrated in HA :)). -**Important note: as the loading path of platforms have been changed in issue [#20807](https://github.com/home-assistant/home-assistant/pull/20807), the current version is not compliant with HA versions 0.88 and above. This is currently been tested and will soon be released** +**Important note: as the loading path of platforms have been changed in issue [#20807](https://github.com/home-assistant/home-assistant/pull/20807), the current version requires HA versions 0.88 and above. For older versions, use version [0.0.1](https://github.com/Sanderhuisman/home-assistant-custom-components/releases/tag/0.0.1).** #### Events From 97b88d6fb80b9de63b8ce03da2564abe3652058c Mon Sep 17 00:00:00 2001 From: Sander Huisman Date: Thu, 21 Feb 2019 08:55:55 +0100 Subject: [PATCH 3/4] Updated custom updater to new path --- custom_updater.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom_updater.json b/custom_updater.json index 68d4006..7f820cf 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -2,24 +2,24 @@ "docker_monitor": { "updated_at": "2019-02-19", "version": "0.0.1", - "local_location": "custom_components/docker_monitor.py", - "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor.py", + "local_location": "custom_components/docker_monitor/__init__.py", + "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/__init__.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", "visit_repo": "https://github.com/Sanderhuisman/home-assistant-custom-components" }, "docker_monitor.sensor": { "updated_at": "2019-02-19", "version": "0.0.1", - "local_location": "custom_components/sensor/docker_monitor.py", - "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/sensor/docker_monitor.py", + "local_location": "custom_components/docker_monitor/sensor.py", + "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/sensor.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", "visit_repo": "https://github.com/Sanderhuisman/home-assistant-custom-components" }, "docker_monitor.switch": { "updated_at": "2019-02-19", "version": "0.0.1", - "local_location": "custom_components/switch/docker_monitor.py", - "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/switch/docker_monitor.py", + "local_location": "custom_components/docker_monitor/switch.py", + "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/switch.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", "visit_repo": "https://github.com/Sanderhuisman/home-assistant-custom-components" }, From cac62e1097a4dc950e75ed9dedc4001fec003e87 Mon Sep 17 00:00:00 2001 From: Sander Huisman Date: Sun, 24 Feb 2019 14:50:36 +0100 Subject: [PATCH 4/4] Version bump --- custom_updater.json | 10 +++++----- docker_monitor/__init__.py | 2 +- docker_monitor/sensor.py | 2 +- docker_monitor/switch.py | 2 +- sensor/eetlijst.py | 2 +- sensor/luftdaten_cu.py | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/custom_updater.json b/custom_updater.json index 7f820cf..a1b6b81 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -1,7 +1,7 @@ { "docker_monitor": { "updated_at": "2019-02-19", - "version": "0.0.1", + "version": "0.0.2", "local_location": "custom_components/docker_monitor/__init__.py", "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/__init__.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", @@ -9,7 +9,7 @@ }, "docker_monitor.sensor": { "updated_at": "2019-02-19", - "version": "0.0.1", + "version": "0.0.2", "local_location": "custom_components/docker_monitor/sensor.py", "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/sensor.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", @@ -17,7 +17,7 @@ }, "docker_monitor.switch": { "updated_at": "2019-02-19", - "version": "0.0.1", + "version": "0.0.2", "local_location": "custom_components/docker_monitor/switch.py", "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/docker_monitor/switch.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", @@ -25,7 +25,7 @@ }, "eetlijst.sensor": { "updated_at": "2019-02-19", - "version": "0.0.1", + "version": "0.0.2", "local_location": "custom_components/sensor/eetlijst.py", "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/sensor/eetlijst.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", @@ -33,7 +33,7 @@ }, "luftdaten.sensor": { "updated_at": "2019-02-19", - "version": "0.0.1", + "version": "0.0.2", "local_location": "custom_components/sensor/luftdaten_cu.py", "remote_location": "https://raw.githubusercontent.com/Sanderhuisman/home-assistant-custom-components/master/sensor/luftdaten_cu.py", "changelog": "https://github.com/Sanderhuisman/home-assistant-custom-components/releases/latest", diff --git a/docker_monitor/__init__.py b/docker_monitor/__init__.py index 3c992a8..d372f27 100644 --- a/docker_monitor/__init__.py +++ b/docker_monitor/__init__.py @@ -23,7 +23,7 @@ from homeassistant.helpers.discovery import load_platform from homeassistant.util import slugify as util_slugify -VERSION = '0.0.1' +VERSION = '0.0.2' REQUIREMENTS = ['docker==3.7.0', 'python-dateutil==2.7.5'] diff --git a/docker_monitor/sensor.py b/docker_monitor/sensor.py index b6797d7..77f56b8 100644 --- a/docker_monitor/sensor.py +++ b/docker_monitor/sensor.py @@ -39,7 +39,7 @@ UTILISATION_MONITOR_VERSION ) -VERSION = '0.0.1' +VERSION = '0.0.2' DEPENDENCIES = ['docker_monitor'] diff --git a/docker_monitor/switch.py b/docker_monitor/switch.py index 53e0fa2..200dc05 100644 --- a/docker_monitor/switch.py +++ b/docker_monitor/switch.py @@ -25,7 +25,7 @@ DOCKER_HANDLE ) -VERSION = '0.0.1' +VERSION = '0.0.2' DEPENDENCIES = ['docker_monitor'] diff --git a/sensor/eetlijst.py b/sensor/eetlijst.py index 1052c68..e67369f 100755 --- a/sensor/eetlijst.py +++ b/sensor/eetlijst.py @@ -23,7 +23,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -VERSION = '0.0.1' +VERSION = '0.0.2' REQUIREMENTS = ['beautifulsoup4==4.7.0'] diff --git a/sensor/luftdaten_cu.py b/sensor/luftdaten_cu.py index 7ed10c0..534b631 100755 --- a/sensor/luftdaten_cu.py +++ b/sensor/luftdaten_cu.py @@ -23,7 +23,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -VERSION = '0.0.1' +VERSION = '0.0.2' _LOGGER = logging.getLogger(__name__)