<commit_before>"""Define a SimpliSafe sensor."""
import logging
from enum import Enum
from typing import Optional

from .errors import SimplipyError

_LOGGER = logging.getLogger(__name__)


class SensorTypes(Enum):
    """Define sensor types."""

    keypad = 1
    keychain = 2
    panic_button = 3
    motion = 4
    entry = 5
    glass_break = 6
    carbon_monoxide = 7
    smoke = 8
    leak = 9
    temperature = 10
    siren = 13
    unknown = 99


class Sensor:
    """Define a base SimpliSafe sensor."""

    def __init__(self, sensor_data: dict) -> None:
        """Initialize."""
        self.sensor_data = sensor_data

        try:<commit_msg>Add "remote" as a valid sensor type<commit_after>"""Define a SimpliSafe sensor."""
import logging
from enum import Enum
from typing import Optional

from .errors import SimplipyError

_LOGGER = logging.getLogger(__name__)


class SensorTypes(Enum):
    """Define sensor types."""

    remote = 0
    keypad = 1
    keychain = 2
    panic_button = 3
    motion = 4
    entry = 5
    glass_break = 6
    carbon_monoxide = 7
    smoke = 8
    leak = 9
    temperature = 10
    siren = 13
    unknown = 99


class Sensor:
    """Define a base SimpliSafe sensor."""

    def __init__(self, sensor_data: dict) -> None:
        """Initialize."""
        self.sensor_data = sensor_data

        try:
{'fraction_non_alphanumeric': 0.09442379182156134, 'fraction_numerical': 0.023048327137546468, 'mean_word_length': 2.5989304812834226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2532666', 'n_tokens_mistral': 457, 'n_tokens_neox': 411, 'n_words': 137}