Skip to content

Commit 79b5af5

Browse files
authored
Merge pull request #101 from Pyhass/fix-parent-issue
fix parent issue
2 parents ad9d7e3 + d2b6a0a commit 79b5af5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyhiveapi/apyhiveapi/session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from datetime import datetime, timedelta
1111

1212
from aiohttp.web import HTTPException
13+
1314
from apyhiveapi import API, Auth
1415

1516
from .device_attributes import HiveAttributes
@@ -158,7 +159,7 @@ def addList(self, entityType: str, data: dict, **kwargs: dict):
158159
formatted_data.update(kwargs)
159160

160161
if data.get("type", "") == "hub":
161-
self.devices["parent"].append(formatted_data)
162+
self.deviceList["parent"].append(formatted_data)
162163
else:
163164
self.deviceList[entityType].append(formatted_data)
164165

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def requirements_from_file(filename="requirements.txt"):
1717

1818

1919
setup(
20-
version="1.0.4",
20+
version="1.0.5",
2121
package_data={"data": ["*.json"]},
2222
include_package_data=True,
2323
cmdclass={

0 commit comments

Comments
 (0)