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
25d69741
Unverified
Commit
25d69741
authored
1 week ago
by
epenet
Committed by
GitHub
1 week ago
Browse files
Options
Downloads
Patches
Plain Diff
Migrate balboa tests to use unit system (#140371)
parent
d2124db3
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/balboa/test_climate.py
+6
-6
6 additions, 6 deletions
tests/components/balboa/test_climate.py
with
6 additions
and
6 deletions
tests/components/balboa/test_climate.py
+
6
−
6
View file @
25d69741
...
...
@@ -26,10 +26,11 @@ from homeassistant.components.climate import (
HVACAction
,
HVACMode
,
)
from
homeassistant.const
import
ATTR_TEMPERATURE
,
Platform
,
UnitOfTemperature
from
homeassistant.const
import
ATTR_TEMPERATURE
,
Platform
from
homeassistant.core
import
HomeAssistant
,
State
from
homeassistant.exceptions
import
ServiceValidationError
from
homeassistant.helpers
import
entity_registry
as
er
from
homeassistant.util.unit_system
import
US_CUSTOMARY_SYSTEM
from
.
import
client_update
,
init_integration
...
...
@@ -97,11 +98,10 @@ async def test_spa_temperature_unit(
hass
:
HomeAssistant
,
client
:
MagicMock
,
integration
:
MockConfigEntry
)
->
None
:
"""
Test temperature unit conversions.
"""
with
patch
.
object
(
hass
.
config
.
units
,
"
temperature_unit
"
,
UnitOfTemperature
.
FAHRENHEIT
):
state
=
await
_patch_spa_settemp
(
hass
,
client
,
0
,
15.4
)
assert
state
.
attributes
.
get
(
ATTR_TEMPERATURE
)
==
15.0
hass
.
config
.
units
=
US_CUSTOMARY_SYSTEM
state
=
await
_patch_spa_settemp
(
hass
,
client
,
0
,
15.4
)
assert
state
.
attributes
.
get
(
ATTR_TEMPERATURE
)
==
15.0
async
def
test_spa_hvac_modes
(
...
...
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