Skip to content

Commit f52a8a7

Browse files
authored
Merge pull request #1 from vladimir-aubrecht/master
Fixed incorrect escape sequence and reflected new API
2 parents 02651c9 + 35999eb commit f52a8a7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Fermax-Blue-Intercom.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ def get_mydevice_info():
418418

419419
# Decode the content of the response
420420
data = response.json()
421-
422421
# Show the user's intercom information
423422
print(f"\n------------")
424423
print(f"INTERCOM INFO")
@@ -438,14 +437,14 @@ def get_mydevice_info():
438437
print(f"Divert service: {data['divertService']}")
439438
print(f"Photocaller: {data['photocaller']}")
440439
print(f"Wireless signal: {data['wirelessSignal']}")
441-
print(f"BlueStream: {data['blueStream']}")
442-
print(f"Phone: {data['phone']}")
443-
print(f"Monitor: {data['monitor']}")
444-
print(f"Panel or edibox: {data['panelOrEdibox']}")
445-
print(f"Monitor or guard unit: {data['monitorOrGuardUnit']}")
446-
print(f"Terminal: {data['terminal']}")
440+
print(f"Is BlueStream: {data['isBlueStream']}")
441+
print(f"Is Phone: {data['isPhone']}")
442+
print(f"Is Monitor: {data['isMonitor']}")
443+
print(f"Is Panel or edibox: {data['isPanelOrEdibox']}")
444+
print(f"Is Monitor or guard unit: {data['isMonitorOrGuardUnit']}")
445+
print(f"Is Terminal: {data['isTerminal']}")
447446
print(f"Streaming mode: {data['streamingMode']}")
448-
print(f"Panel: {data['panel']}")
447+
print(f"Is Panel: {data['isPanel']}")
449448

450449
# Function - Get mydevice info json
451450

@@ -567,7 +566,7 @@ def open_door():
567566

568567
# Show message if door is opened or failed to open
569568
if result == "la puerta abierta" or result == "the door is open":
570-
print("\The door has been opened")
569+
print("\nThe door has been opened")
571570
else:
572571
print("\nError opening the door")
573572

0 commit comments

Comments
 (0)