diff --git a/esphome/__main__.py b/esphome/__main__.py index bf2d68d834..a78413ff04 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -364,7 +364,7 @@ def command_update_all(args): def print_bar(middle_text): middle_text = " {} ".format(middle_text) width = len(click.unstyle(middle_text)) - half_line = "=" * ((twidth - width) / 2) + half_line = "=" * ((twidth - width) // 2) click.echo("%s%s%s" % (half_line, middle_text, half_line)) for f in files: