Skip to content

Commit c246941

Browse files
committed
Rename module for publishing
1 parent c275bca commit c246941

16 files changed

Lines changed: 33 additions & 33 deletions

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
pip install pylint .
5151
- name: Run Pylint
5252
run: |
53-
pylint pyintesishome
53+
pylint pyintesishome2
5454
5555
pytest:
5656
name: Run tests Python ${{ matrix.python-version }}
@@ -77,7 +77,7 @@ jobs:
7777
pip install -r requirements_test.txt
7878
- name: Run tests and generate coverage report
7979
run: |
80-
pytest --cov=./pyintesishome --cov-report=xml
80+
pytest --cov=./pyintesishome2 --cov-report=xml
8181
- name: Upload coverage to Codecov
8282
uses: codecov/codecov-action@v1
8383
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pyIntesisHome
1+
# pyIntesisHome2
22

33
This project is a python3 library for interfacing with Intesis air conditioning controllers, including cloud control of IntesisHome (Airconwithme + anywAiR) and local control of IntesisBox devices.
44
It is fully asynchronous using the aiohttp library, and utilises the private API used by the IntesisHome mobile apps.
@@ -37,7 +37,7 @@ climate:
3737
3838
```python
3939
import asyncio
40-
from pyintesishome import IntesisHome
40+
from pyintesishome2 import IntesisHome
4141

4242
async def main(loop):
4343
controller = IntesisHome('username', 'password', loop=loop, device_type='airconwithme')

examples/cli_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import logging
44
import sys
55

6-
from pyintesishome import IntesisHome, IntesisHomeLocal
7-
from pyintesishome.const import (
6+
from pyintesishome2 import IntesisHome, IntesisHomeLocal
7+
from pyintesishome2.const import (
88
DEVICE_AIRCONWITHME,
99
DEVICE_ANYWAIR,
1010
DEVICE_INTESISHOME,
1111
DEVICE_INTESISHOME_LOCAL,
1212
)
1313

14-
_LOGGER = logging.getLogger("pyintesishome")
14+
_LOGGER = logging.getLogger("pyintesishome2")
1515

1616

1717
async def main(loop):

examples/dhw_aquarea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55
from datetime import datetime
66

7-
from pyintesishome import IntesisHome
7+
from pyintesishome2 import IntesisHome
88

99
logging.basicConfig(
1010
level=logging.INFO,

examples/dhw_aquarea_domoticz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import paho.mqtt.publish as publish
88

9-
from pyintesishome import IntesisHome
9+
from pyintesishome2 import IntesisHome
1010

1111
logging.basicConfig(
1212
level=logging.INFO,
@@ -169,7 +169,7 @@ def aquarea_to_domoticz(
169169
print(msgs)
170170

171171
print(broker)
172-
rc = publish.multiple(msgs, hostname=broker, port=port, client_id="pyIntesisHome2")
172+
rc = publish.multiple(msgs, hostname=broker, port=port, client_id="pyintesishome2")
173173
print(date.strftime("%Y-%m-%d %H:%M:%S: ") + "Publish: %s" % (rc))
174174

175175

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" pyintesishome Module """
1+
""" pyintesishome2 Module """
22
from .exceptions import IHAuthenticationError, IHConnectionError
33
from .intesisbase import IntesisBase
44
from .intesisbox import IntesisBox
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Constants for pyintesishome """
1+
""" Constants for pyintesishome2 """
22
INTESIS_CMD_STATUS = '{"status":{"hash":"x"},"config":{"hash":"x"}}'
33
INTESIS_NULL = 32768
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Exceptions for pyintesishome """
1+
""" Exceptions for pyintesishome2 """
22

33

44
class IHConnectionError(Exception):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Helpers for pyintesishome """
1+
""" Helpers for pyintesishome2 """
22

33

44
def twos_complement_16bit(val):
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919
from .helpers import twos_complement_16bit, uint32
2020

21-
_LOGGER = logging.getLogger("pyintesishome")
21+
_LOGGER = logging.getLogger("pyintesishome2")
2222

2323

2424
# pylint: disable=too-many-instance-attributes, too-many-arguments, too-many-public-methods
@@ -141,7 +141,7 @@ async def _data_received(self):
141141

142142
except IncompleteReadError:
143143
_LOGGER.error(
144-
"pyIntesisHome lost connection to the %s server due to IncompleteReadError.", self._device_type
144+
"pyintesishome2 lost connection to the %s server due to IncompleteReadError.", self._device_type
145145
)
146146
except asyncio.CancelledError:
147147
_LOGGER.debug("_data_received task was cancelled.")
@@ -152,7 +152,7 @@ async def _data_received(self):
152152
OSError,
153153
) as exc:
154154
_LOGGER.error(
155-
"PyIntesisHome lost connection to the %s server. Exception: %s",
155+
"pyintesishome2 lost connection to the %s server. Exception: %s",
156156
self._device_type,
157157
exc,
158158
)

0 commit comments

Comments
 (0)