Pull entity state or config entry into integration

I hope this isn’t too much of a n00b question, but I have been searching and tinkering for hours without much success. I am trying to pull either the zone.home.friendly_name attribute or the hass.config.location_name into an integration to use as a variable that I need to do a comparison against. Where I am stuck is what class I need to import into the integration to access either of these values, e.g. (from homeassistant.components…, etc.). Thanks all for the help.