Skip to content

Commit

Permalink
Merge branch 'lindsaymarkward_main'
Browse files Browse the repository at this point in the history
  • Loading branch information
sehaas committed Nov 23, 2021
2 parents 924ebfa + 7134a77 commit 955103e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
7 changes: 6 additions & 1 deletion custom_components/hisense_tv/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging

from homeassistant.components import mqtt
from homeassistant.const import MAJOR_VERSION, MINOR_VERSION

from .const import DEFAULT_CLIENT_ID

Expand Down Expand Up @@ -35,7 +36,11 @@ def __init__(
self._mqtt_out = mqtt_out or ""
self._mac = mac
self._unique_id = uid
self._icon = "mdi:television-clean"
self._icon = (
"mdi:television-clean"
if MAJOR_VERSION <= 2021 and MINOR_VERSION < 11
else "mdi:television-shimmer"
)
self._subscriptions = {
"tvsleep": lambda: None,
"state": lambda: None,
Expand Down
24 changes: 14 additions & 10 deletions custom_components/hisense_tv/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"domain": "hisense_tv",
"name": "Hisense TV MQTT Bridge",
"version": "21.4.8",
"documentation": "https://github.com/sehaas/ha_hisense",
"dependencies": ["mqtt"],
"codeowners": [
"@sehaas"
],
"requirements": ["wakeonlan==1.1.6"],
"config_flow": true
"domain": "hisense_tv",
"name": "Hisense TV MQTT Bridge",
"version": "21.11.23",
"documentation": "https://github.com/sehaas/ha_hisense_tv",
"dependencies": [
"mqtt"
],
"codeowners": [
"@sehaas"
],
"requirements": [
"wakeonlan==1.1.6"
],
"config_flow": true
}

0 comments on commit 955103e

Please sign in to comment.