1 """Utils for CO2 signal."""
3 from __future__
import annotations
5 from collections.abc
import Mapping
12 """Return the extra name describing the location if not home."""
13 if CONF_COUNTRY_CODE
in config:
14 return config[CONF_COUNTRY_CODE]
16 if CONF_LATITUDE
in config:
17 return f
"{round(config[CONF_LATITUDE], 2)}, {round(config[CONF_LONGITUDE], 2)}"
str|None get_extra_name(Mapping[str, Any] config)