Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
0f63aaa0
Unverified
Commit
0f63aaa0
authored
1 year ago
by
Joost Lekkerkerker
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated Pihole binary sensors (#95799)
parent
7026ffe0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/pi_hole/binary_sensor.py
+0
-37
0 additions, 37 deletions
homeassistant/components/pi_hole/binary_sensor.py
with
0 additions
and
37 deletions
homeassistant/components/pi_hole/binary_sensor.py
+
0
−
37
View file @
0f63aaa0
...
@@ -8,7 +8,6 @@ from typing import Any
...
@@ -8,7 +8,6 @@ from typing import Any
from
hole
import
Hole
from
hole
import
Hole
from
homeassistant.components.binary_sensor
import
(
from
homeassistant.components.binary_sensor
import
(
BinarySensorDeviceClass
,
BinarySensorEntity
,
BinarySensorEntity
,
BinarySensorEntityDescription
,
BinarySensorEntityDescription
,
)
)
...
@@ -39,42 +38,6 @@ class PiHoleBinarySensorEntityDescription(
...
@@ -39,42 +38,6 @@ class PiHoleBinarySensorEntityDescription(
BINARY_SENSOR_TYPES
:
tuple
[
PiHoleBinarySensorEntityDescription
,
...]
=
(
BINARY_SENSOR_TYPES
:
tuple
[
PiHoleBinarySensorEntityDescription
,
...]
=
(
PiHoleBinarySensorEntityDescription
(
# Deprecated, scheduled to be removed in 2022.6
key
=
"
core_update_available
"
,
name
=
"
Core Update Available
"
,
entity_registry_enabled_default
=
False
,
device_class
=
BinarySensorDeviceClass
.
UPDATE
,
extra_value
=
lambda
api
:
{
"
current_version
"
:
api
.
versions
[
"
core_current
"
],
"
latest_version
"
:
api
.
versions
[
"
core_latest
"
],
},
state_value
=
lambda
api
:
bool
(
api
.
versions
[
"
core_update
"
]),
),
PiHoleBinarySensorEntityDescription
(
# Deprecated, scheduled to be removed in 2022.6
key
=
"
web_update_available
"
,
name
=
"
Web Update Available
"
,
entity_registry_enabled_default
=
False
,
device_class
=
BinarySensorDeviceClass
.
UPDATE
,
extra_value
=
lambda
api
:
{
"
current_version
"
:
api
.
versions
[
"
web_current
"
],
"
latest_version
"
:
api
.
versions
[
"
web_latest
"
],
},
state_value
=
lambda
api
:
bool
(
api
.
versions
[
"
web_update
"
]),
),
PiHoleBinarySensorEntityDescription
(
# Deprecated, scheduled to be removed in 2022.6
key
=
"
ftl_update_available
"
,
name
=
"
FTL Update Available
"
,
entity_registry_enabled_default
=
False
,
device_class
=
BinarySensorDeviceClass
.
UPDATE
,
extra_value
=
lambda
api
:
{
"
current_version
"
:
api
.
versions
[
"
FTL_current
"
],
"
latest_version
"
:
api
.
versions
[
"
FTL_latest
"
],
},
state_value
=
lambda
api
:
bool
(
api
.
versions
[
"
FTL_update
"
]),
),
PiHoleBinarySensorEntityDescription
(
PiHoleBinarySensorEntityDescription
(
key
=
"
status
"
,
key
=
"
status
"
,
translation_key
=
"
status
"
,
translation_key
=
"
status
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment