# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
from typing import Union
from VeraGridEngine.Devices.Parents.editable_device import DeviceType
from VeraGridEngine.Devices.Aggregation.area import GenericAreaGroup
[docs]
class Country(GenericAreaGroup):
def __init__(self, name='Country', idtag: Union[str, None] = None, code='', latitude=0.0, longitude=0.0):
"""
Country
:param name: name of the area
:param idtag: UUID code
:param latitude: latitude (deg)
:param longitude: longitude (deg)
"""
GenericAreaGroup.__init__(self,
name=name,
idtag=idtag,
code=code,
device_type=DeviceType.CountryDevice,
latitude=latitude,
longitude=longitude)