summaryrefslogtreecommitdiff
path: root/include/py/homekit/openwrt/config.py
blob: bd75d1c49dd7d847d2fe582efb53d030f4b1570f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typing import Optional

from homekit.config import ConfigUnit


class OpenwrtConfig(ConfigUnit):
    NAME = 'openwrt'

    @classmethod
    def schema(cls) -> Optional[dict]:
        return {
            'ip': cls._addr_schema(only_ip=True, required=True),
            'command_id': {'type': 'string', 'required': True}
        }