-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to aio-intex-spa (from intex-spa) (#34)
- Loading branch information
1 parent
94e469f
commit 527e854
Showing
32 changed files
with
182 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Initialize the package.""" | ||
|
||
from aio_intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa.intex_spa_exceptions import ( | ||
IntexSpaUnreachableException, | ||
IntexSpaDnsException, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Get spa info""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def get_spa_info(): | ||
"""Get spa info""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_update_info()) | ||
print(await spa.async_update_info()) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(get_spa_info()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Get spa status""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def get_spa_status(): | ||
"""Get spa status""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_update_status()) | ||
print(await spa.async_update_status()) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(get_spa_status()) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Usage example: Get spa status twice""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def get_spa_status_twice(): | ||
"""Get spa status twice""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await spa.async_update_status()) | ||
print(await spa.async_update_status()) | ||
|
||
|
||
asyncio.run(get_spa_status_twice()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
"""Usage example file""" | ||
"""Usage example: Get spa status with delay""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def get_spa_status_with_delay(): | ||
"""Get spa status with delay""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_update_status()) | ||
print(await spa.async_update_status()) | ||
await asyncio.sleep(10) | ||
print(await intex_spa.async_update_status()) | ||
print(await spa.async_update_status()) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(get_spa_status_with_delay()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Set spa bubbles off""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def set_spa_bubbles_off(): | ||
"""Set spa bubbles off""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_set_bubbles(False)) | ||
print(await spa.async_set_bubbles(False)) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(set_spa_bubbles_off()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Set spa bubbles on""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def set_spa_bubbles_on(): | ||
"""Set spa bubbles on""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_set_bubbles()) | ||
print(await spa.async_set_bubbles()) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(set_spa_bubbles_on()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Set spa filter off""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def set_spa_filter_off(): | ||
"""Set spa filter off""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_set_filter(False)) | ||
print(await spa.async_set_filter(False)) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(set_spa_filter_off()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
"""Usage example file""" | ||
"""Usage example: Set spa filter on""" | ||
import os | ||
import logging | ||
import asyncio | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from aio_intex_spa import IntexSpa | ||
|
||
SPA_ADDRESS = os.getenv("SPA_ADDRESS") or "SPA_DEVICE" | ||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
async def example_intex_spa(): | ||
"""Example for intex_spa""" | ||
intex_spa = IntexSpa(SPA_ADDRESS) | ||
async def set_spa_filter_on(): | ||
"""Set spa filter on""" | ||
spa = IntexSpa(SPA_ADDRESS) | ||
|
||
print(await intex_spa.async_set_filter()) | ||
print(await spa.async_set_filter()) | ||
|
||
|
||
asyncio.run(example_intex_spa()) | ||
asyncio.run(set_spa_filter_on()) |
Oops, something went wrong.