sodz.py 504 B

1234567891011121314151617181920212223
  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): # type:(dict)->Event
  14. return None