Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lghorizon/const.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
"""Python client for LGHorizon."""

# flake8: noqa
# Box states
ONLINE_RUNNING = "ONLINE_RUNNING"
ONLINE_STANDBY = "ONLINE_STANDBY"
UNKNOWN = "UNKNOWN"

BOX_PLAY_STATE_CHANNEL = "linear"
BOX_PLAY_STATE_REPLAY = "replay"
BOX_PLAY_STATE_DVR = "nDVR"
Expand Down
1 change: 0 additions & 1 deletion lghorizon/lghorizon_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""LG Horizon API client."""

import logging
import json
from typing import Any, Dict, cast, Callable, Optional

from .lghorizon_device import LGHorizonDevice
Expand Down
4 changes: 1 addition & 3 deletions lghorizon/lghorizon_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
LGHorizonChannel,
)

from .exceptions import LGHorizonApiConnectionError
from .helpers import make_id
from .lghorizon_device_state_processor import LGHorizonDeviceStateProcessor
from .lghorizon_mqtt_client import LGHorizonMqttClient
Expand All @@ -28,7 +27,6 @@
MEDIA_KEY_RECORD,
MEDIA_KEY_REWIND,
MEDIA_KEY_STOP,
ONLINE_RUNNING,
PLATFORM_TYPES,
)

Expand Down Expand Up @@ -150,7 +148,7 @@ async def register_mqtt(self) -> None:
topic = f"{self._auth.household_id}/{self._mqtt_client.client_id}/status"
payload = {
"source": self._mqtt_client.client_id,
"state": ONLINE_RUNNING,
"state": LGHorizonRunningState.ONLINE_RUNNING.value,
"deviceType": "HGO",
}
await self._mqtt_client.publish_message(topic, json.dumps(payload))
Expand Down
1 change: 1 addition & 0 deletions lghorizon/lghorizon_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class LGHorizonRunningState(Enum):
UNKNOWN = "UNKNOWN"
ONLINE_RUNNING = "ONLINE_RUNNING"
ONLINE_STANDBY = "ONLINE_STANDBY"
OFFLINE_NETWORK_STANDBY = "OFFLINE_NETWORK_STANDBY"
OFFLINE = "OFFLINE"


Expand Down