jh_access.py 514 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. import logging
  4. from typing import TYPE_CHECKING
  5. if TYPE_CHECKING:
  6. from apps.web.core.adapter.base import SmartBox
  7. from apps.web.eventer import Event, EventBuilder
  8. logger = logging.getLogger(__name__)
  9. class builder(EventBuilder):
  10. def __init__(self, smartBox):
  11. # type:(SmartBox)->None
  12. self.deviceAdapter = smartBox
  13. def __getEvent__(self, device_event):
  14. # type:(dict)->Event
  15. return None