Skip to content

Home Information - Your home, your data, organized.

Python
478 B
Raw Blame
from hi.apps.common.enums import LabeledEnum


class ProfileType( LabeledEnum ):

    SINGLE_STORY  = ( 'Single Story', '' )
    TWO_STORY     = ( 'Two Story', '' )
    APARTMENT     = ( 'Apartment', '' )

    @classmethod
    def default(cls):
        return cls.SINGLE_STORY

    def json_filename(self):
        """ Relative to this module's directory """
        return f'assets/profiles/{self}.json'
    
    def icon_filename(self):
        return f'icon_{self}.svg'