1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-13 08:50:56 +00:00
trezor-firmware/src/apps/homescreen/__init__.py
2016-09-27 17:25:45 +02:00

18 lines
396 B
Python

from trezor.dispatcher import register
from trezor.utils import unimport_func
@unimport_func
def dispatch_Initialize(mtype, mbuf):
from trezor.messages.Initialize import Initialize
message = Initialize.loads(mbuf)
from .layout_homescreen import layout_homescreen
return layout_homescreen(message)
def boot():
Initialize = 0
register(Initialize, dispatch_Initialize)