|
12 | 12 | from cmdserver.debounce import debounce |
13 | 13 | from cmdserver.jvc import CommandExecutor, CommandNack |
14 | 14 | from cmdserver.jvccommands import Command, load_all_commands, Numeric, PowerState, \ |
15 | | - READ_ONLY_RC |
| 15 | + READ_ONLY_RC, Model |
16 | 16 | from cmdserver.mqtt import MQTT |
17 | 17 | from jvccommands import InstallationMode |
18 | 18 |
|
@@ -77,13 +77,18 @@ def __update_state(self): |
77 | 77 | ana = self.__executor.get(cmd) |
78 | 78 | cmd = Command.PictureMode |
79 | 79 | pic = self.__executor.get(cmd) |
80 | | - # cmd = Command.InstallationMode |
81 | | - # install = self.__executor.get(cmd) |
| 80 | + cmd = Command.Model |
| 81 | + md = self.__executor.get(cmd) |
| 82 | + if md != Model.DLA_NZ700: |
| 83 | + cmd = Command.InstallationMode |
| 84 | + install = self.__executor.get(cmd) |
| 85 | + else: |
| 86 | + install = InstallationMode.ONE.name |
82 | 87 | self.__attributes = { |
83 | 88 | 'anamorphicMode': ana.name, |
84 | | - # 'installationMode': install.name, |
85 | | - 'installationMode': InstallationMode.ONE.name, |
86 | | - 'pictureMode': pic.name |
| 89 | + 'installationMode': install, |
| 90 | + 'pictureMode': pic.name, |
| 91 | + 'model': md.name, |
87 | 92 | } |
88 | 93 | update_in = 10 |
89 | 94 | else: |
|
0 commit comments