Skip to content

Commit 531d2dd

Browse files
committed
disable example logs
1 parent 8707510 commit 531d2dd

11 files changed

Lines changed: 14 additions & 14 deletions

File tree

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/doorbell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def Events():
2222

2323
if __name__ == '__main__':
2424
loop = asyncio.get_event_loop()
25-
client = SinricPro(APP_KEY, [DOORBELL_ID], callbacks, event_callbacks=eventsCallbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
25+
client = SinricPro(APP_KEY, [DOORBELL_ID], callbacks, event_callbacks=eventsCallbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
2626
loop.run_until_complete(client.connect())

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from sinric import SinricPro
22
import asyncio
33

4-
APP_KEY = ''
5-
APP_SECRET = ''
6-
SWITCH_ID = ''
4+
APP_KEY = '40f5fb6c-2cf7-4877-a788-f9c6a3be59ba'
5+
APP_SECRET = 'a841dc8b-e5d8-4148-9ac6-c3c918cf7f44-11bd4d83-daaa-489e-b271-5bec3f994cd7'
6+
SWITCH_ID = '6340be8cf695e6bcd84a9f2d'
77

88
def power_state(device_id, state):
99
print(device_id, state)
@@ -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/temperature_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def events():
2626

2727
if __name__ == '__main__':
2828
loop = asyncio.get_event_loop()
29-
client = SinricPro(APP_KEY, [TEMPERATURE_SENSOR_ID], callbacks, event_callbacks=events_callbacks, enable_log=True, restore_states=False, secretKey=APP_SECRET)
29+
client = SinricPro(APP_KEY, [TEMPERATURE_SENSOR_ID], callbacks, event_callbacks=events_callbacks, enable_log=False, restore_states=False, secretKey=APP_SECRET)
3030
loop.run_until_complete(client.connect())
3131

3232
# To update the temperature on server.

0 commit comments

Comments
 (0)