simple fixes
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
import logging
|
||||
from enum import Enum
|
||||
|
||||
GLOBAL_VAR = "Hello, World!"
|
||||
LOGGER = logging.getLogger('AppDaemon._globals')
|
||||
|
||||
|
||||
def global_function():
|
||||
print('This is a global function.')
|
||||
GLOBAL_VAR = 'Hello, World!'
|
||||
|
||||
|
||||
def global_function() -> None:
|
||||
LOGGER.info('This is a global function.')
|
||||
|
||||
|
||||
class GlobalClass:
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
self.value = 'This is a global class instance.'
|
||||
|
||||
def display(self):
|
||||
print(self.value)
|
||||
def display(self) -> None:
|
||||
LOGGER.info(self.value)
|
||||
|
||||
|
||||
class ModeSelect(Enum):
|
||||
|
||||
Reference in New Issue
Block a user