mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-28 08:48:27 +02:00
Update dependencies (#906)
PyYAML 5.1.2 -> 5.2 https://github.com/yaml/pyyaml/blob/master/CHANGES flake8 3.6.0 -> 3.7.9 https://github.com/PyCQA/flake8/tree/master/docs/source/release-notes paho-mqtt 1.4.0 -> 1.5.0 https://github.com/eclipse/paho.mqtt.python/blob/master/ChangeLog.txt platformio 4.0.3 -> 4.1.0 https://github.com/platformio/platformio-core/releases protobuf 3.10.0 -> 3.11.1 https://github.com/protocolbuffers/protobuf/releases pylint 2.3.0 -> 2.4.4 http://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-4
This commit is contained in:
+5
-5
@@ -8,7 +8,7 @@ import os
|
||||
import re
|
||||
|
||||
# pylint: disable=unused-import, wrong-import-order
|
||||
from typing import Any, Dict, List # noqa
|
||||
from typing import Any, Dict, List, Optional, Set # noqa
|
||||
|
||||
from esphome.const import CONF_ARDUINO_VERSION, SOURCE_FILE_EXTENSIONS, \
|
||||
CONF_COMMENT, CONF_ESPHOME, CONF_USE_ADDRESS, CONF_WIFI
|
||||
@@ -271,7 +271,7 @@ class ID(object):
|
||||
else:
|
||||
self.is_manual = is_manual
|
||||
self.is_declaration = is_declaration
|
||||
self.type = type # type: Optional[MockObjClass]
|
||||
self.type = type # type: Optional['MockObjClass']
|
||||
|
||||
def resolve(self, registered_ids):
|
||||
from esphome.config_validation import RESERVED_IDS
|
||||
@@ -489,11 +489,11 @@ class EsphomeCore(object):
|
||||
# Task counter for pending tasks
|
||||
self.task_counter = 0
|
||||
# The variable cache, for each ID this holds a MockObj of the variable obj
|
||||
self.variables = {} # type: Dict[str, MockObj]
|
||||
self.variables = {} # type: Dict[str, 'MockObj']
|
||||
# A list of statements that go in the main setup() block
|
||||
self.main_statements = [] # type: List[Statement]
|
||||
self.main_statements = [] # type: List['Statement']
|
||||
# A list of statements to insert in the global block (includes and global variables)
|
||||
self.global_statements = [] # type: List[Statement]
|
||||
self.global_statements = [] # type: List['Statement']
|
||||
# A set of platformio libraries to add to the project
|
||||
self.libraries = [] # type: List[Library]
|
||||
# A set of build flags to set in the platformio project
|
||||
|
||||
Reference in New Issue
Block a user