Skip to content

Home Information - Your home, your data, organized.

Python
871 B
Raw Blame
from hi.apps.config.setting_enums import SettingEnum, SettingDefinition
from hi.apps.attribute.enums import AttributeValueType

Label = 'Notifications'


class NotifySetting( SettingEnum ):

    NOTIFICATIONS_ENABLED = SettingDefinition(
        label = 'Enable Notifications',
        description = 'Whether to send notifications (e.g., emails).',
        value_type = AttributeValueType.BOOLEAN,
        value_range = None,
        is_editable = True,
        is_required = True,
        initial_value = True,
    )
    NOTIFICATIONS_EMAIL_ADDRESSES = SettingDefinition(
        label = 'Notification Email Addresses',
        description = 'Email addresses to send notifications to (if enabled).',
        value_type = AttributeValueType.TEXT,
        value_range = None,
        is_editable = True,
        is_required = False,
        initial_value = '',
    )