Skip to content

Commit 47ae9f9

Browse files
committed
Add HACS files
1 parent f05cb65 commit 47ae9f9

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ climate:
3434
This project only test with `Panasonic air conditioner - PX series` which use `CZ-T007` wifi adapater. `CZ-T005`, `CZ-T006` or `PXGD` series might occurs some error.
3535

3636

37-
[python-panasonic-comfort-cloud]: https://github.com/lostfields/python-panasonic-comfort-cloud
37+
---
38+
## And..
39+
### You can also...
3840

39-
[panasonic_ac]: https://github.com/djbulsink/panasonic_ac
40-
41-
[python-panasonic-smart-app]: https://github.com/PhantasWeng/python-panasonic-smart-app
42-
43-
[panasonic_smart_app]: https://github.com/PhantasWeng/panasonic_smart_app
41+
<a href="https://www.buymeacoffee.com/phantas"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=phantas&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff"></a>

hacs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Panasonic Smart App",
3+
"content_in_root": true,
4+
"render_readme": true,
5+
"domains": ["climate"],
6+
"iot_class": "Cloud Polling"
7+
}

test.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import logging, requests, json
2+
from pprint import pprint
3+
import time
4+
5+
HOST = "https://ota-stage.owlting.com"
6+
7+
def api_call_login(func):
8+
print('api_call_login')
9+
def wrapper_call(*args, **kwargs):
10+
try:
11+
func(*args, **kwargs)
12+
except:
13+
print('error')
14+
return wrapper_call
15+
16+
@api_call_login
17+
def test():
18+
print(time.time())
19+
r = requests.get("https://in.hotjar.com/api/v2/client/sites/2107935/visit-data?sv=7")
20+
r.raise_for_status()
21+
22+
23+
# for i in range(10):
24+
# test()
25+
# time.sleep(1)
26+
test()

0 commit comments

Comments
 (0)