Skip to content

Commit a7fad5a

Browse files
authored
Merge pull request #45 from sinricpro/2.6.3
2.6.3
2 parents e1004e8 + 4f94f7a commit a7fad5a

12 files changed

Lines changed: 17 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.6.3]
2+
3+
### Bugfix
4+
* **Exit if the connection closed**
5+
* **Example logging disabled**
6+
17
## [2.6.2]
28

39
### Bugfix

examples/blinds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def range_value(device_id,state):
2020

2121
if __name__ == '__main__':
2222
loop = asyncio.get_event_loop()
23-
client = SinricPro(APP_KEY, [BLINDS_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
23+
client = SinricPro(APP_KEY, [BLINDS_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2424
loop.run_until_complete(client.connect())

examples/custom_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def mode_value(device_id, mode_value, instance_id):
2525

2626
if __name__ == '__main__':
2727
loop = asyncio.get_event_loop()
28-
client = SinricPro(APP_KEY, [DEVICE_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
28+
client = SinricPro(APP_KEY, [DEVICE_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2929
loop.run_until_complete(client.connect())

examples/dim_switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def power_level(device_id, powerLevel):
2121

2222
if __name__ == '__main__':
2323
loop = asyncio.get_event_loop()
24-
client = SinricPro(APP_KEY, [DIM_SWITCH_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
24+
client = SinricPro(APP_KEY, [DIM_SWITCH_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2525
loop.run_until_complete(client.connect())
2626

2727
# client.event_handler.raiseEvent(deviceId1, 'setPowerState',data={'state': 'On'})

examples/garagedoor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def set_mode(did, state):
2020

2121
if __name__ == '__main__':
2222
loop = asyncio.get_event_loop()
23-
client = SinricPro(APP_KEY, [GARAGEDOOR_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
23+
client = SinricPro(APP_KEY, [GARAGEDOOR_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2424
loop.run_until_complete(client.connect())

examples/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def decrease_color_temperature(device_id, value):
5656

5757
if __name__ == '__main__':
5858
loop = asyncio.get_event_loop()
59-
client = SinricPro(APP_KEY, [LIGHT_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
59+
client = SinricPro(APP_KEY, [LIGHT_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
6060
loop.run_until_complete(client.connect())
6161

6262
# To update the light state on server.

examples/smart_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def lock_state(device_id, state):
1616

1717
if __name__ == '__main__':
1818
loop = asyncio.get_event_loop()
19-
client = SinricPro(APP_KEY, [LOCK_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
19+
client = SinricPro(APP_KEY, [LOCK_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2020
loop.run_until_complete(client.connect())
2121

2222

examples/speaker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def set_mute(device_id, mute):
4242

4343
if __name__ == '__main__':
4444
loop = asyncio.get_event_loop()
45-
client = SinricPro(APP_KEY, [SPEAKER_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
45+
client = SinricPro(APP_KEY, [SPEAKER_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
4646
loop.run_until_complete(client.connect())
4747

4848
# To update the speaker state on server.

examples/switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def power_state(device_id, state):
1515

1616
if __name__ == '__main__':
1717
loop = asyncio.get_event_loop()
18-
client = SinricPro(APP_KEY, [SWITCH_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
18+
client = SinricPro(APP_KEY, [SWITCH_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
1919
loop.run_until_complete(client.connect())
2020

2121
# To update the power state on server.

examples/tv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def skip_channels(device_id, channel_count):
6060

6161
if __name__ == '__main__':
6262
loop = asyncio.get_event_loop()
63-
client = SinricPro(APP_KEY, [TV_ID], callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
63+
client = SinricPro(APP_KEY, [TV_ID], callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
6464
loop.run_until_complete(client.connect())
6565

6666
# To update the TV state on server:

0 commit comments

Comments
 (0)