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
18f30d2e
Unverified
Commit
18f30d2e
authored
9 months ago
by
epenet
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix pointless-string-statement pylint warning in emulated_hue tests (#119368)
parent
a3356f4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/components/emulated_hue/test_upnp.py
+6
-6
6 additions, 6 deletions
tests/components/emulated_hue/test_upnp.py
with
6 additions
and
6 deletions
tests/components/emulated_hue/test_upnp.py
+
6
−
6
View file @
18f30d2e
...
...
@@ -27,7 +27,7 @@ BRIDGE_SERVER_PORT = get_test_instance_port()
class
MockTransport
:
"""
Mock asyncio transport.
"""
def
__init__
(
self
):
def
__init__
(
self
)
->
None
:
"""
Create a place to store the sends.
"""
self
.
sends
=
[]
...
...
@@ -63,7 +63,7 @@ def hue_client(
yield
client
async
def
setup_hue
(
hass
)
:
async
def
setup_hue
(
hass
:
HomeAssistant
)
->
None
:
"""
Set up the emulated_hue integration.
"""
with
patch
(
"
homeassistant.components.emulated_hue.async_create_upnp_datagram_endpoint
"
...
...
@@ -82,7 +82,7 @@ def test_upnp_discovery_basic() -> None:
mock_transport
=
MockTransport
()
upnp_responder_protocol
.
transport
=
mock_transport
"""
Original request emitted by the Hue Bridge v1 app.
"""
#
Original request emitted by the Hue Bridge v1 app.
request
=
"""
M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1900
ST:ssdp:all
...
...
@@ -114,7 +114,7 @@ def test_upnp_discovery_rootdevice() -> None:
mock_transport
=
MockTransport
()
upnp_responder_protocol
.
transport
=
mock_transport
"""
Original request emitted by Busch-Jaeger free@home SysAP.
"""
#
Original request emitted by Busch-Jaeger free@home SysAP.
request
=
"""
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN:
"
ssdp:discover
"
...
...
@@ -146,7 +146,7 @@ def test_upnp_no_response() -> None:
mock_transport
=
MockTransport
()
upnp_responder_protocol
.
transport
=
mock_transport
"""
Original request emitted by the Hue Bridge v1 app.
"""
#
Original request emitted by the Hue Bridge v1 app.
request
=
"""
INVALID * HTTP/1.1
HOST:239.255.255.250:1900
ST:ssdp:all
...
...
@@ -158,7 +158,7 @@ MX:3
upnp_responder_protocol
.
datagram_received
(
encoded_request
,
1234
)
assert
mock_transport
.
sends
==
[]
assert
not
mock_transport
.
sends
async
def
test_description_xml
(
hass
:
HomeAssistant
,
hue_client
)
->
None
:
...
...
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