| 132 | |
| 133 | |
| 134 | class StubFlasher: |
| 135 | def __init__(self, json_path): |
| 136 | with open(json_path) as json_file: |
| 137 | stub = json.load(json_file) |
| 138 | |
| 139 | self.text = base64.b64decode(stub["text"]) |
| 140 | self.text_start = stub["text_start"] |
| 141 | self.entry = stub["entry"] |
| 142 | |
| 143 | try: |
| 144 | self.data = base64.b64decode(stub["data"]) |
| 145 | self.data_start = stub["data_start"] |
| 146 | except KeyError: |
| 147 | self.data = None |
| 148 | self.data_start = None |
| 149 | |
| 150 | |
| 151 | class ESPLoader(object): |