mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
add-black (#1593)
* Add black Update pre commit Update pre commit add empty line * Format with black
This commit is contained in:
committed by
GitHub
parent
2b60b0f1fa
commit
69879920eb
@@ -1,4 +1,4 @@
|
||||
""" Tests for the sensor component """
|
||||
"""Tests for the sensor component."""
|
||||
|
||||
|
||||
def test_sensor_device_class_set(generate_main):
|
||||
@@ -11,4 +11,4 @@ def test_sensor_device_class_set(generate_main):
|
||||
main_cpp = generate_main("tests/component_tests/sensor/test_sensor.yaml")
|
||||
|
||||
# Then
|
||||
assert "s_1->set_device_class(\"voltage\");" in main_cpp
|
||||
assert 's_1->set_device_class("voltage");' in main_cpp
|
||||
|
Reference in New Issue
Block a user