Skip to content

Commit

Permalink
Merge pull request #264 from ikalchev/v2.9.1
Browse files Browse the repository at this point in the history
V2.9.1
  • Loading branch information
ikalchev authored May 31, 2020
2 parents fb97881 + 8232cfc commit c694a09
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Sections
### Developers
-->

## [2.9.1] - 2020-05-31

### Added
- Add compatibility with zeroconf 0.27. [#263](https://github.com/ikalchev/HAP-python/pull/263)

## [2.9.0] - 2020-05-29

### Fixed
Expand Down
10 changes: 7 additions & 3 deletions pyhap/accessory_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ def __init__(self, accessory, state):
adv_data = self._get_advert_data()
super().__init__(
'_hap._tcp.local.',
self.accessory.display_name + '._hap._tcp.local.',
socket.inet_aton(self.state.address), self.state.port,
0, 0, adv_data)
name=self.accessory.display_name + '._hap._tcp.local.',
port=self.state.port,
weight=0,
priority=0,
properties=adv_data,
addresses=[socket.inet_aton(self.state.address)]
)

def _setup_hash(self):
setup_hash_material = self.state.setup_id + self.state.mac
Expand Down
2 changes: 1 addition & 1 deletion pyhap/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""This module contains constants used by other modules."""
MAJOR_VERSION = 2
MINOR_VERSION = 9
PATCH_VERSION = 0
PATCH_VERSION = 1
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
REQUIRED_PYTHON_VER = (3, 5)
Expand Down

0 comments on commit c694a09

Please sign in to comment.