1 """The CPU Speed integration."""
3 from cpuinfo
import cpuinfo
8 from .const
import LOGGER, PLATFORMS
12 """Set up from a config entry."""
13 if not await hass.async_add_executor_job(cpuinfo.get_cpu_info):
15 "Unable to get CPU information, the CPU Speed integration "
16 "is not compatible with your system"
20 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
25 """Unload a config entry."""
26 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)