mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[tm1638] Fix linting and formatting issues (#7443)
This commit is contained in:
		| @@ -1,8 +1,9 @@ | |||||||
| import esphome.codegen as cg | import esphome.codegen as cg | ||||||
| import esphome.config_validation as cv |  | ||||||
| from esphome.components import binary_sensor | from esphome.components import binary_sensor | ||||||
|  | import esphome.config_validation as cv | ||||||
| from esphome.const import CONF_KEY | from esphome.const import CONF_KEY | ||||||
| from ..display import tm1638_ns, TM1638Component, CONF_TM1638_ID |  | ||||||
|  | from ..display import CONF_TM1638_ID, TM1638Component, tm1638_ns | ||||||
|  |  | ||||||
| TM1638Key = tm1638_ns.class_("TM1638Key", binary_sensor.BinarySensor) | TM1638Key = tm1638_ns.class_("TM1638Key", binary_sensor.BinarySensor) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,13 +1,13 @@ | |||||||
| import esphome.codegen as cg |  | ||||||
| import esphome.config_validation as cv |  | ||||||
| from esphome import pins | from esphome import pins | ||||||
|  | import esphome.codegen as cg | ||||||
| from esphome.components import display | from esphome.components import display | ||||||
|  | import esphome.config_validation as cv | ||||||
| from esphome.const import ( | from esphome.const import ( | ||||||
|  |     CONF_CLK_PIN, | ||||||
|  |     CONF_DIO_PIN, | ||||||
|     CONF_ID, |     CONF_ID, | ||||||
|     CONF_INTENSITY, |     CONF_INTENSITY, | ||||||
|     CONF_LAMBDA, |     CONF_LAMBDA, | ||||||
|     CONF_CLK_PIN, |  | ||||||
|     CONF_DIO_PIN, |  | ||||||
|     CONF_STB_PIN, |     CONF_STB_PIN, | ||||||
| ) | ) | ||||||
|  |  | ||||||
| @@ -51,4 +51,4 @@ async def to_code(config): | |||||||
|             config[CONF_LAMBDA], [(TM1638ComponentRef, "it")], return_type=cg.void |             config[CONF_LAMBDA], [(TM1638ComponentRef, "it")], return_type=cg.void | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
|     cg.add(var.set_writer(lambda_)) |         cg.add(var.set_writer(lambda_)) | ||||||
|   | |||||||
| @@ -1,8 +1,9 @@ | |||||||
| import esphome.codegen as cg | import esphome.codegen as cg | ||||||
| import esphome.config_validation as cv |  | ||||||
| from esphome.components import output | from esphome.components import output | ||||||
|  | import esphome.config_validation as cv | ||||||
| from esphome.const import CONF_ID, CONF_LED | from esphome.const import CONF_ID, CONF_LED | ||||||
| from ..display import tm1638_ns, TM1638Component, CONF_TM1638_ID |  | ||||||
|  | from ..display import CONF_TM1638_ID, TM1638Component, tm1638_ns | ||||||
|  |  | ||||||
| TM1638OutputLed = tm1638_ns.class_("TM1638OutputLed", output.BinaryOutput, cg.Component) | TM1638OutputLed = tm1638_ns.class_("TM1638OutputLed", output.BinaryOutput, cg.Component) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,8 +1,9 @@ | |||||||
| import esphome.codegen as cg | import esphome.codegen as cg | ||||||
| import esphome.config_validation as cv |  | ||||||
| from esphome.components import switch | from esphome.components import switch | ||||||
|  | import esphome.config_validation as cv | ||||||
| from esphome.const import CONF_LED | from esphome.const import CONF_LED | ||||||
| from ..display import tm1638_ns, TM1638Component, CONF_TM1638_ID |  | ||||||
|  | from ..display import CONF_TM1638_ID, TM1638Component, tm1638_ns | ||||||
|  |  | ||||||
| TM1638SwitchLed = tm1638_ns.class_("TM1638SwitchLed", switch.Switch, cg.Component) | TM1638SwitchLed = tm1638_ns.class_("TM1638SwitchLed", switch.Switch, cg.Component) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user