Skip to content

Commit

Permalink
Bug fixes and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanderhuisman committed Mar 27, 2019
1 parent ee3d84e commit c7a9ca0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ docker_monitor:
| --------------------------------- | ------------------------------- | ----- |
| utilization_version | Docker version | - |
| container_status | Container status | - |
| container_up_time | Container start time | - |
| container_uptime | Container start time | - |
| container_image | Container image | - |
| container_cpu_percentage_usage | CPU usage | % |
| container_memory_usage | Memory usage | MB |
Expand Down
10 changes: 5 additions & 5 deletions custom_updater.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"docker_monitor": {
"updated_at": "2019-02-19",
"version": "0.0.2",
"version": "0.0.3",
"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.2",
"version": "0.0.3",
"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.2",
"version": "0.0.3",
"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"
},
"eetlijst.sensor": {
"updated_at": "2019-02-19",
"version": "0.0.2",
"version": "0.0.3",
"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",
"visit_repo": "https://github.com/Sanderhuisman/home-assistant-custom-components"
},
"luftdaten.sensor": {
"updated_at": "2019-02-19",
"version": "0.0.2",
"version": "0.0.3",
"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",
Expand Down
6 changes: 4 additions & 2 deletions docker_monitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from homeassistant.helpers.discovery import load_platform
from homeassistant.util import slugify as util_slugify

VERSION = '0.0.2'
VERSION = '0.0.3'

REQUIREMENTS = ['docker==3.7.0', 'python-dateutil==2.7.5']

Expand Down Expand Up @@ -167,6 +167,7 @@ def __init__(self, base_url):

self._containers = {}
self._event_callback_listeners = []
self._events = None

try:
self._client = docker.DockerClient(base_url=self._base_url)
Expand All @@ -181,7 +182,8 @@ def __init__(self, base_url):

def exit(self):
_LOGGER.info("Stopping threads for Docker monitor")
self._events.close()
if self._events:
self._events.close()
for container in self._containers.values():
container.exit()

Expand Down
2 changes: 1 addition & 1 deletion docker_monitor/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
UTILISATION_MONITOR_VERSION
)

VERSION = '0.0.2'
VERSION = '0.0.3'

DEPENDENCIES = ['docker_monitor']

Expand Down
2 changes: 1 addition & 1 deletion docker_monitor/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
DOCKER_HANDLE
)

VERSION = '0.0.2'
VERSION = '0.0.3'

DEPENDENCIES = ['docker_monitor']

Expand Down
2 changes: 1 addition & 1 deletion sensor/eetlijst.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle

VERSION = '0.0.2'
VERSION = '0.0.3'

REQUIREMENTS = ['beautifulsoup4==4.7.0']

Expand Down
2 changes: 1 addition & 1 deletion sensor/luftdaten_cu.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle

VERSION = '0.0.2'
VERSION = '0.0.3'

_LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit c7a9ca0

Please sign in to comment.