Skip to content

Commit

Permalink
Merge pull request #405 from TD22057/dev
Browse files Browse the repository at this point in the history
Version 0.9.2
  • Loading branch information
krkeegan authored May 17, 2021
2 parents cb1206d + e91bd80 commit 2b4091d
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.1
current_version = 0.9.2
commit = True
tag = False

Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Revision Change History

## [0.9.2]

## Hotfix

- Allows the use of domain names for the broker and hub addresses. I created a
bug in 0.9.1, my fault for thinking of this. ([PR 404][P404])

## Fixes

- Adjusts the docker build script to one that works. ([PR 402][P402])

## [0.9.1]

### Additions
Expand Down Expand Up @@ -729,3 +740,5 @@ will add new features.
[P397]: https://github.com/TD22057/insteon-mqtt/pull/397
[P399]: https://github.com/TD22057/insteon-mqtt/pull/399
[P400]: https://github.com/TD22057/insteon-mqtt/pull/400
[P404]: https://github.com/TD22057/insteon-mqtt/pull/404
[P402]: https://github.com/TD22057/insteon-mqtt/pull/402
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ integrated into and controlled from anything that can use MQTT.

This package works well with HomeAssistant and can be easily [installed as an addon](docs/HA_Addon_Instructions.md) using the HomeAssistant Supervisor.

Version: 0.9.1 ([History](CHANGELOG.md))
Version: 0.9.2 ([History](CHANGELOG.md))

### Recent Breaking Changes

Expand Down
6 changes: 3 additions & 3 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

docker run --rm --privileged \
-v ~/.docker:/root/.docker \
homeassistant/amd64-builder --all \
-r https://github.com/TD22057/insteon-mqtt \
-b master
-v /var/run/docker.sock:/var/run/docker.sock:ro \
homeassistant/amd64-builder \
--all -r https://github.com/TD22057/insteon-mqtt -b master
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Insteon MQTT",
"description": "Creates an MQTT interface to the Insteon protocol.",
"slug": "insteon-mqtt",
"version": "0.9.1",
"version": "0.9.2",
"startup": "services",
"arch": ["amd64","armhf","aarch64","i386"],
"boot": "auto",
Expand Down
10 changes: 0 additions & 10 deletions insteon_mqtt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,6 @@ def _find_error(self, meta, error_path, iter):
class IMValidator(Validator):
""" Adds a few check_with functions to validate specific settings
"""
def _check_with_valid_ip(self, field, value):
""" Tests whether value is a valid ipv4 or ipv6 address
Uses the library ipaddress for accuracy
"""
try:
ipaddress.ip_address(value)
except ValueError:
self._error(field, "Invalid IP Address")

def _check_with_valid_insteon_addr(self, field, value):
""" Tests whether value is a valid Insteon Address for Insteon MQTT
Expand Down
2 changes: 1 addition & 1 deletion insteon_mqtt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
variable throughout the code without causing a cyclic import
"""

__version__ = "0.9.1"
__version__ = "0.9.2"

#===========================================================================
4 changes: 0 additions & 4 deletions insteon_mqtt/schemas/config-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ insteon:
two following definitions must be satisfied.
hub_ip:
type: string
check_with: valid_ip
hub_port:
type: integer
min: 0
Expand Down Expand Up @@ -140,8 +139,6 @@ insteon:
mqtt:
type: dict
meta:
schema_error: unknown field
allow_unknown:
## The only unknown keys are user defined discovery_class settings
type: dict
Expand All @@ -164,7 +161,6 @@ mqtt:
schema:
broker:
type: string
check_with: valid_ip
required: True
port:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name = 'insteon-mqtt',
version = '0.9.1',
version = '0.9.2',
description = "Insteon <-> MQTT bridge server",
long_description = readme,
author = "Ted Drain",
Expand Down
7 changes: 7 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ def test_good_hub(self):
val = IM.config.validate(file)
assert val == ""

#-----------------------------------------------------------------------
def test_dns(self):
file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'configs', 'use_dns.yaml')
val = IM.config.validate(file)
assert val == ""

#-----------------------------------------------------------------------
def test_validate_addr(self):
validator = IM.config.IMValidator()
Expand Down

0 comments on commit 2b4091d

Please sign in to comment.